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

目录
打赏
0
0
0
0
3
分享
相关文章
yarn install命令报错解决办法-warning package-lock.json found.
yarn install命令报错解决办法-warning package-lock.json found.
413 0
|
10月前
|
安装go-sqlite3包时报exec: "gcc": executable file not found in %PATH%解决办法
安装go-sqlite3包时报exec: "gcc": executable file not found in %PATH%解决办法
328 0
dpkg-buildpackage: error: fakeroot not found, either install the fakeroot
dpkg-buildpackage: error: fakeroot not found, either install the fakeroot
387 0
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报错
Conda 卸载包报错:PackagesNotFoundError: The following packages are missing from the target environment:
Conda 卸载包报错:PackagesNotFoundError: The following packages are missing from the target environment:
Conda 卸载包报错:PackagesNotFoundError: The following packages are missing from the target environment:
No change to package.json was detected. No package manager install will be executed.怎么解决
这个提示是由于没有对 package.json 文件进行更改所导致的,因此无需运行包管理器的安装。
471 0
安装 paddleocr 报错 gcc: error trying to exec ‘cc1‘: execvp: 没有那个文件或目录
安装 paddleocr 报错 gcc: error trying to exec ‘cc1‘: execvp: 没有那个文件或目录
936 0
常见的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
解决报错信息 —— Error: Cannot find module ‘webpack-cli/bin/config-yargs’
解决报错信息 —— Error: Cannot find module ‘webpack-cli/bin/config-yargs’
407 0
python离线安装环境 解决 ERROR: Could not find a version that satisfies the requirement xxx 以及winError[10061]
python离线安装环境 解决 ERROR: Could not find a version that satisfies the requirement xxx 以及winError[10061]

热门文章

最新文章

AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等