renv restore failing with Matrix
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 1.2k
- Forks
- 170
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 10
Description
Hi! renv::restore() is no longer working in any of our projects because Matrix gets in the way. I can install Matrix when running renv::install('Matrix@<version>') or renv::restore(packages='Matrix'), but running renv::restore() and I get inexplicably:
Is it related to this?
Matrix is available under R 4.5?
I cant seem to get past this.
Environment:
# Session Info ---------------------------------------------------------------
R version 4.1.2 (2021-11-01)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 22.04.3 LTS
Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.10.0
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.10.0
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices datasets utils methods base
loaded via a namespace (and not attached):
[1] compiler_4.1.2 tools_4.1.2 renv_1.0.7
repos used:
c(CRAN_MC = "https://jfrog.ourcompanyrepo.io/artifactory/cran", RSPM = "https://packagemanager.posit.co/all/__linux__/jammy/latest",
CRAN = "https://cran.r-project.org")
I've tried reordering every combination, i know this affects installs for our internal repo with artifactory.
Debugging through renv gets me to renv_available_packages_latest and the records are NULL:
I've tried available.packages() and Matrix is nowhere to be found.
I've tried libcurl, curl as download method, download.headers options.
Not sure how to attack this. Any help appreciated!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure with R 4.1.2, renv 1.0.7, and the repositories listed in the issue, then trace renv_available_packages_latest and compare it with available.packages(). Determine why Matrix is absent during renv::restore() while direct installation succeeds. Done means the cause is identified and restore can resolve Matrix from the configured repositories.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100