这似乎对我有用renv 0.12.0
。使用这个锁文件:
{
"R": {
"Version": "3.4.4",
"Repositories": [
{
"Name": "CRAN",
"URL": "https://cran.rstudio.com"
}
]
},
"Packages": {
"Rcpp": {
"Package": "Rcpp",
"Version": "1.0.5",
"Source": "Repository",
"Repository": "CRAN",
"Hash": "125dc7a0ed375eb68c0ce533b48d291f"
},
"lattice": {
"Package": "lattice",
"Version": "0.20-35",
"Source": "Repository",
"Repository": "CRAN",
"Hash": "10a22a9a66fbe7944e9ef98985d7c927"
},
"raster": {
"Package": "raster",
"Version": "2.9-5",
"Source": "Repository",
"Repository": "CRAN",
"Hash": "85a01c2f0ad30d43f51b861a2d78d5e8"
},
"renv": {
"Package": "renv",
"Version": "0.12.0",
"Source": "Repository",
"Repository": "CRAN",
"Hash": "7340c71f46a0fd16506cfa804e224e44"
},
"sp": {
"Package": "sp",
"Version": "1.4-4",
"Source": "Repository",
"Repository": "CRAN",
"Hash": "e0485290545c0e768c2b50390114da1f"
}
}
}
我看到以下内容renv::restore()
:
> renv::restore()
The following package(s) will be updated:
# CRAN ===============================
- Rcpp [* -> 1.0.5]
- raster [* -> 2.9-5]
- sp [* -> 1.4-4]
Do you want to proceed? [y/N]: y
* Querying repositories for available binary packages ... Done!
* Querying repositories for available source packages ... Done!
Retrieving 'https://cran.rstudio.com/src/contrib/Rcpp_1.0.5.tar.gz' ...
OK [file is up to date]
Retrieving 'https://cran.rstudio.com/src/contrib/Archive/raster/raster_2.9-5.tar.gz' ...
OK [file is up to date]
Retrieving 'https://cran.rstudio.com/src/contrib/sp_1.4-4.tar.gz' ...
OK [file is up to date]
Installing Rcpp [1.0.5] ...
OK [built from source]
Installing sp [1.4-4] ...
OK [built from source]
Installing raster [2.9-5] ...
OK [built from source]
如果您在更新到 后仍然遇到问题renv 0.12.0
,我建议您在https://github.com/rstudio/renv/issues提交一个带有一些额外上下文的问题。