“非零退出状态”R 3.6.0 "Biobase"

“Non Zero Exit Status” R 3.6.0 "Biobase"

我需要在 R 上安装不同的包。对于 windows,OS 是 ubuntu。当我尝试 "BiocManager::install("Biobase") 时,出现以下错误:

** R
** data
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** checking absolute paths in shared objects and dynamic libraries
mv: cannot move '/home/mark/R/x86_64-pc-linux-gnu-library/3.6/00LOCK-Biobase/00new/Biobase' to '/home/mark/R/x86_64-pc-linux-gnu-library/3.6/Biobase': Permission denied
ERROR:   moving to final location failed

移动某些文件的权限似乎有问题。我已经尝试授予每个人写入 /3.6 目录的权限,这没有改变任何东西。

有什么解决办法吗?

显然,这是 3.6 中的新功能。但这应该可以解决您的问题:

Sys.setenv(R_INSTALL_STAGED = FALSE)