【发布时间】:2020-07-01 21:09:57
【问题描述】:
我在使用 renv 时遇到问题。对于更大的项目,我们希望使用renv 来拥有相同版本的r 和我们所有的包。然而,一旦有更新版本的包可用并且我们运行renv::restore(),我们就会收到如下错误(请注意:rcpparmadillo 不是唯一的包。它也会发生在 graybox、mime、stringi 和许多更多)。
Error installing package 'RcppArmadillo':
=========================================
* installing *source* package 'RcppArmadillo' ...
** Package 'RcppArmadillo' successfully unpacked and MD5 sums checked
** using staged installation
**********************************************
WARNING: this package has a configure script
It probably needs manual configuration
**********************************************
** libs
Warning in system(paste(cmd, "shlib-clean")) 'make' not found
Warning in system(cmd) 'make' not found
ERROR: compilation failed for package 'RcppArmadillo'
* removing 'C:/Users/..../renv/staging/1/RcppArmadillo'
Error: install of package 'RcppArmadillo' failed
我现在有两个问题:
- 如何解决此错误?
- 如果renv 每次有新版本可用时都会崩溃,我们如何在整个团队中使用相同版本的包?
谢谢。 莉齐
【问题讨论】:
标签: renv renv r rcpparmadillo renv r failed-installation rcpparmadillo renv