r - Linux 上的错误 : unable to load R code in package 'graphics' when compiling R 3. 6.0

标签 r bitbucket-pipelines amazon-linux

我在 amazonlinux:2018.03.0.20190212 上构建 R 时遇到错误bitbucket 管道中的 docker 图像。奇怪的是,如果我运行 EC2 (Amazon Linux 2018),我可以毫无错误地运行完全相同的命令。

有谁知道如何解决这个问题?

make[6]: Entering directory `/opt/R/src/library/graphics/src'
mkdir -p -- ../../../../library/graphics/libs
make[6]: Leaving directory `/opt/R/src/library/graphics/src'
make[5]: Leaving directory `/opt/R/src/library/graphics/src'
make[4]: Leaving directory `/opt/R/src/library/graphics'
make[4]: Entering directory `/opt/R/src/library/graphics'
byte-compiling package 'graphics'
Error : .onLoad failed in loadNamespace() for 'utils', details:
  call: system(paste(which, shQuote(names[i])), intern = TRUE, ignore.stderr = TRUE)
  error: error in running command
Error: unable to load R code in package 'graphics'
Execution halted

在 EC2 上手动:
make[6]: Leaving directory `/opt/R/src/library/graphics/src'
make[5]: Leaving directory `/opt/R/src/library/graphics/src'
make[4]: Leaving directory `/opt/R/src/library/graphics'
make[4]: Entering directory `/opt/R/src/library/graphics'
byte-compiling package 'graphics'
make[4]: Leaving directory `/opt/R/src/library/graphics'
make[3]: Leaving directory `/opt/R/src/library/graphics'
make[3]: Entering directory `/opt/R/src/library/stats'
building package 'stats'

我对 R 不太熟悉,也没有发现错误消息特别有用。

最佳答案

我有同样的问题,虽然不是 Docker 而是 Singularity。对我来说,结果是我错过了容器中的“哪个”二进制文件。安装“哪个”包(我在 CentOS7 上)后,我能够通过该错误。

关于r - Linux 上的错误 : unable to load R code in package 'graphics' when compiling R 3. 6.0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56449941/

相关文章:

r - 在使用过滤器时使用 get() 按列分组在某些情况下不起作用

r - 按 ID 和时间在 R 中进行简单查找

python - Flake8 linter 检查仅在推送文件上通过 Bitbucket 管道

docker - 如何为图像位桶管道配置环境

angular - 如何阻止 Bitbucket 管道的构建?

r - ggplot2 跨组中的嵌套方面

linux - 如何在 amazon linux ami 中安装、配置和运行 supervisor?

python - letsencrypt 失败,ImportError : No module named interface

ruby - 如何在 amazon linux 中将 ruby​​ 版本升级到 2.6.3

用于加载数据的 R Shiny 应用进度指示器