删除所有R不附带的软件包 [英] Remove all packages that do not come with R

查看:153
本文介绍了删除所有R不附带的软件包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何删除除baserecommended之外的所有已安装软件包?

How can I remove all installed packages except base and recommended?

推荐答案

代替

已更新至R 3.0.0,并且必须重建所有软件包.

Updated to R 3.0.0 and have to rebuild all packages.

只是做

update.packages(..., checkBuilt=TRUE)

这是我在R 3.0.0上所做的(使用lib.loc=...指向我的不同本地目录).这将更新您拥有的所有内容,并且仍然可以从存储库中获取,例如CRAN.对于install_git()等,您不走运,需要重新安装.

which is what I did on my R 3.0.0 (using lib.loc=... to point to my different local directories). This will update everything you have and which it can still get from repos such as CRAN. For install_git() etc, you are out of luck and need to reinstall.

但是,无论哪种方式, 都不需要先删除软件包.

But either way you do not need to remove the packages first.

这篇关于删除所有R不附带的软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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