搜索
您的当前位置:首页正文

「Debug R」WSL里面R 3.6 安装R包的一个bug

来源:二三娱乐

今天在WSL里面安装R包Biobase时遇到如下的报错

mv: cannot move '/home/xzg/R/x86_64-pc-linux-gnu-library/3.6/00LOCK-Biobase/00new/Biobase' to '/home/xzg/R/x86_64-pc-linux-gnu-library/3.6/Biobase': Permission denied
ERROR:   moving to final location failed

解决方法就是安装前运行如下语句

Sys.setenv(R_INSTALL_STAGED = FALSE)

参考资料:

Top