rcloud - 无法在 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 实例中的每个人安装。
您在本地(或个人库)安装中可能遇到的一个问题是,您需要设置一个代理以在防火墙之外访问公共域中的安装库/包。
另一个可能是由于当前安装的 R 和 RCloud 版本。如果您认为可能是这种情况,我会联系您的 RCloud 管理员。
推荐阅读
- c++11 - 使用 Wasm-ld 链接库时出错:std 函数上的符号类型 mimsatch
- google-admin-sdk - 目录 API 缺少用户的“网站 []”对象
- sql - 试图在 Laravel 中发布一个对象数组。ErrorException:从文件中的空值创建默认对象
- javascript - 为什么 useEffect 呈现意外的值?
- php - 将单选按钮添加到标准 Wordpress 注册表单
- laravel - 无法解码 json laravel
- android - 关闭 android 应用程序时忽略 Form.destroy
- prolog - Prolog 中的格式输出
- c - 如何从无符号字节转换为整数?
- react-native - 如何在 react-native 中创建线性渐变(在图像顶部和应用栏下方)