我无法安装软件包,并且尝试通过devtools安装软件包没有成功。似乎我无法创建用于容纳已安装软件包的库。我们允许在RCloud上安装软件包吗?还是没有空间让我们开始安装软件包?我收到以下错误:
#1ERROR: failed to create lock directory /shared/users/rcloud/danielra0091/library/00LOCK-digest’
#2ERROR: unable to create ‘/shared/users/rcloud/danielra0091/library/rbenchmark’
```
library(devtools)
install_github("HenrikBengtsson/future")
Results:
Downloading GitHub repo HenrikBengtsson/future@master
from URL https://api.github.com/repos/HenrikBengtsson/future/zipball/master
Installing future
trying URL 'http://cran.r-project.org/src/contrib/digest_0.6.18.tar.gz'
Content type 'application/x-gzip' length 128553 bytes (125 KB)
==================================================
downloaded 125 KB
Installing digest
'/usr/lib/R/bin/R' --no-site-file --no-environ --no-save --no-restore --quiet \
CMD INSTALL '/tmp/RtmprSADLu-danielra0091/devtools22293a652eab/digest' \
--library='/shared/users/rcloud/danielra0091/library' --install-tests
Error: Command failed (3)
trace:
FUN(X[[i]], ...)
vapply(remotes, install_remote, ..., FUN.VALUE = logical(1))
install_remotes(remotes, quiet = quiet, ...)
install_github("HenrikBengtsson/future")
-------------------------------------------------------------------------
install.packages("Rcpp", dependencies=TRUE, INSTALL_opts = c('--no-lock'))
Results:
The downloaded source packages are in
‘/tmp/RtmprSADLu-danielra0091/downloaded_packages’
In addition: Warning messages:
1: In install.packages("Rcpp", dependencies = TRUE, INSTALL_opts = c("--no-lock")) :
installation of package ‘inline’ had non-zero exit status
2: In install.packages("Rcpp", dependencies = TRUE, INSTALL_opts = c("--no-lock")) :
installation of package ‘rbenchmark’ had non-zero exit status
3: In install.packages("Rcpp", dependencies = TRUE, INSTALL_opts = c("--no-lock")) :
installation of package ‘pinp’ had non-zero exit status
4: In install.packages("Rcpp", dependencies = TRUE, INSTALL_opts = c("--no-lock")) :
installation of package ‘pkgKitten’ had non-zero exit status
5: In install.packages("Rcpp", dependencies = TRUE, INSTALL_opts = c("--no-lock")) :
installation of package ‘Rcpp’ had non-zero exit status
```
答案 0 :(得分:1)
仅供参考,如果您自己安装软件包,它们将被安装在您的个人资料库中。您还可以从服务器管理员那里请求安装软件包,这将为RCloud实例中的每个人安装。
本地(或个人库)安装可能遇到的一个问题是,您需要设置代理以使防火墙外的用户访问公共域中的安装库/软件包。
另一个原因可能是由于当前安装的R和RCloud版本。如果您认为可能是这种情况,我会与您的RCloud管理员联系。