I have the following setup:
- I initialized a new R-Project (R 3.4.3) from a git repo.
- The project from the repo used
renv(0.11.0) to snapshot the project packages - The
renv.lockfile contains multiple packages. One of them israsterwith version2.9-5
Since the newer versions of the raster package on CRAN changed the R dependencies (R>= 3.5), renv can not restore the package because renv does not find the raster package on CRAN any more.
Message:
Error: package 'raster' is not available
The project on the git repo was built with R version 3.4.3. I do use a local repo for this project as well but this does not cause problems at all.
Any suggestions to get renv working as intended?
This seems to work for me with
renv 0.12.0. Using this lockfile:I see the following on
renv::restore():If you're still having issues even after updating to
renv 0.12.0, I would recommend filing an issue with some extra context at https://github.com/rstudio/renv/issues.