简体   繁体   English

如何删除依赖于其他软件包的R软件包?

[英]How to remove R package that has dependencies on other packages?

I've installed a R package (PathRanker) that depends on packages (xml,Rgraphviz,Rcurl). 我已经安装了一个依赖于软件包(xml,Rgraphviz,Rcurl)的R软件包(PathRanker)。 I've noticed that the all the packages' folders inside the library shows some sort of a locked sign. 我注意到库中所有软件包的文件夹都显示了某种锁定的标志。 I tried to remove PathRanker using the R CMD REMOVE but it didnt works. 我试图使用R CMD REMOVE删除PathRanker,但没有成功。 I tried to reinstall the package (which I kindda mess around with the code) it also didnt works. 我试图重新安装该程序包(我有点把代码弄乱了),但它也没有用。 So I think it got something to do with the dependency packages. 因此,我认为这与依赖包有关。 Can someone help me? 有人能帮我吗? thanks... 谢谢...

You might have installed the packages as root (if you are using Linux), and trying to remove the package as normal user. 您可能已经以root用户身份安装了软件包(如果使用Linux),并试图以普通用户身份删除软件包。

Start an R session as root (sudo R), and try to remove (see: ?remove.packages ) the packages in this environment. 以root(sudo R)身份启动R会话,然后尝试在此环境中删除(请参阅: ?remove.packages )软件包。 Or from console: sudo R CMD REMOVE (package name) 或从控制台: sudo R CMD REMOVE (package name)

If still not working, please write more about the error messages. 如果仍然无法正常工作,请写更多有关错误消息的信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM