装R包(package)error:(as ‘lib’ is unspecified)installation of package had non-zero exit status]

情况:

R-studio无法安装devtools
给出的error为
installation of package had non-zero exit status

解决办法1:

在Rstudio中
查看R包安装目录—运行(.libPaths())

装R包(package)error:(as ‘lib’ is unspecified)installation of package had non-zero exit status]

尝试找到所在R包后 unlink("/home/data/vip08/R/x86_64-pc-linux-gnu-library/4.1/", recursive = TRUE).

解决办法2:

尝试更新R整个包
updateR()
然后重启R-studio

解决办法3:

手动下载该包到到R-studio中,根据(.libPaths())将整个文件夹copy到路径下,再次执行
library(devtools)

© 版权声明
THE END
如果内容对您有所帮助,就支持一下吧!
点赞0 分享
小恐龙讨厌去天兔座数羊的头像 - 宋马
评论 抢沙发

请登录后发表评论

    暂无评论内容