gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-03 15:47:28 32 4
gpt4 key购买 nike

我在 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/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com