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

简介: 装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())

微信截图_20230606153840.png

尝试找到所在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)

相关文章
|
12月前
|
资源调度 JavaScript Windows
yarn install命令报错解决办法-warning package-lock.json found.
yarn install命令报错解决办法-warning package-lock.json found.
314 0
|
Oracle 关系型数据库 Go
【开发工具】解决 Goland 报错:Found several packages [main, xxx] in ...
【开发工具】解决 Goland 报错:Found several packages [main, xxx] in ...
1630 0
【开发工具】解决 Goland 报错:Found several packages [main, xxx] in ...
|
2月前
|
缓存 Python
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-npf9报错
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-npf9报错
|
4月前
|
JavaScript
npm install 报错 import sys; print“%s.%s.%s”% sys.version_info[ :3] ;
npm install 报错 import sys; print“%s.%s.%s”% sys.version_info[ :3] ;
101 3
|
数据可视化 Python
常见的bug---5、在安装superset时候报错,Command “python setup.py egg_info“ failed with error code 1
常见的bug---5、在安装superset时候报错,Command “python setup.py egg_info“ failed with error code 1
|
6月前
[cmake] --- find_package
[cmake] --- find_package
130 0
|
数据安全/隐私保护
dpkg-buildpackage: error: debian/rules binary subprocess was killed by signal 2
dpkg-buildpackage: error: debian/rules binary subprocess was killed by signal 2
990 0
|
资源调度
No change to package.json was detected. No package manager install will be executed.怎么解决
这个提示是由于没有对 package.json 文件进行更改所导致的,因此无需运行包管理器的安装。
406 0
No package ‘glib-2.0‘ found/No package ‘gobject-2.0‘ found
No package ‘glib-2.0‘ found/No package ‘gobject-2.0‘ found
201 0
No package ‘libusb‘ found
No package ‘libusb‘ found
137 0