Error on package and R paths and installations

孤街醉人 提交于 2019-12-13 00:34:09

问题


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

How can I fix this?


回答1:


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 

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



来源:https://stackoverflow.com/questions/20967256/error-on-package-and-r-paths-and-installations

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!