我需要在 R 上安装不同的软件包。操作系统是 ubuntu for windows。当我尝试“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)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)