首页 > 解决方案 > 无法在 RCloud 上安装软件包

问题描述

我无法安装软件包并尝试通过 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
```

标签: rcloud

解决方案


仅供参考,如果您自己安装软件包,它们将安装在您的个人库中。您还可以向您的服务器管理员请求安装包,这些包将为 RCloud 实例中的每个人安装。

您在本地(或个人库)安装中可能遇到的一个问题是,您需要设置一个代理以在防火墙之外访问公共域中的安装库/包。

另一个可能是由于当前安装的 R 和 RCloud 版本。如果您认为可能是这种情况,我会联系您的 RCloud 管理员。


推荐阅读