软件包和R路径以及安装错误 [英] Error on package and R paths and installations

查看:81
本文介绍了软件包和R路径以及安装错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在尝试将软件包从根目录移到用户帐户时,我搞砸了R安装.我尝试通通(使用--purge)并通过apt-get install重新安装R(r-base r-base-dev).但是我得到了错误

I messed up my R installation while trying to move packages from the root to the user account. I tried unistalling (with --purge) and re-installing R (r-base r-base-dev) via the apt-get install. But I get the error

/usr/bin/R: line 236: /usr/lib/R/etc/ldpaths: No such file or directory
/usr/bin/R: line 259: /usr/lib/R/bin/exec/R: No such file or directory

我该如何解决?

推荐答案

我遇到了与您相同的问题,并在卸载后通过使用以下提示对其进行了修复:

I had the same problems as yours and get it fixed by using this instraction after the uninstallation:

dpkg -l |grep ^rc|awk '{print $2}' |sudo xargs dpkg -P 

和R的先前配置将被删除.这样就可以完美安装R了.

and the previous configurations of R would be deleted. Then R can be installed perfectly.

这篇关于软件包和R路径以及安装错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆