【发布时间】:2016-01-27 21:52:37
【问题描述】:
在最后一行,this Docker 文件调用littler::install.r 来安装Rcpp RcppEigen 和matrixStats。
几个月前,整个代码运行良好。现在,它在最后一步爆炸。更准确地说,Rcpp 和 RcppEigen 仍然可以完美安装,但是在安装 matrixStats 时,我得到:
installing to /usr/local/lib/R/site-library/matrixStats/libs
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
Error in get(name, envir = asNamespace(pkg), inherits = FALSE) :
object 'checkCompilerOptions' not found
Calls: ::: -> get
Execution halted
ERROR: loading failed
* removing ‘/usr/local/lib/R/site-library/matrixStats’
The downloaded source packages are in
‘/tmp/downloaded_packages’
Warning message:
In install.packages(f, lib, if (isMatchingFile(f)) NULL else repos) :
installation of package ‘matrixStats’ had non-zero exit status
这是我以前从未遇到过的错误,甚至无法找到它的来源。什么可能导致这个问题?任何信息都会有很大帮助。
【问题讨论】:
-
正如@jack-wasey 所指出的,这在使用 RDevel 中的
install.packages时也是一个问题,但不影响使用 R 进行安装