装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)

相关文章
|
资源调度 JavaScript Windows
yarn install命令报错解决办法-warning package-lock.json found.
yarn install命令报错解决办法-warning package-lock.json found.
318 0
|
Oracle 关系型数据库 Go
【开发工具】解决 Goland 报错:Found several packages [main, xxx] in ...
【开发工具】解决 Goland 报错:Found several packages [main, xxx] in ...
1649 0
【开发工具】解决 Goland 报错:Found several packages [main, xxx] in ...
|
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] ;
110 3
E: flAbsPath on /var/lib/dpkg/status failed - realpath (2: 没有那个文件或目录)
E: flAbsPath on /var/lib/dpkg/status failed - realpath (2: 没有那个文件或目录)
273 0
|
Python
Python常见问题 - pip报错 ValueError: Unable to find resource t64.exe in package pip._vendor.distlib
Python常见问题 - pip报错 ValueError: Unable to find resource t64.exe in package pip._vendor.distlib
430 0
Python常见问题 - pip报错 ValueError: Unable to find resource t64.exe in package pip._vendor.distlib
|
数据可视化 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
|
资源调度
No change to package.json was detected. No package manager install will be executed.怎么解决
这个提示是由于没有对 package.json 文件进行更改所导致的,因此无需运行包管理器的安装。
413 0
No package ‘libusb‘ found
No package ‘libusb‘ found
139 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
205 0
No package ‘gtk+-3.0‘ found
No package ‘gtk+-3.0‘ found
173 0