R软件及其包的更新

1 篇文章 0 订阅

方法一

move the packages from the old R installation into the new version; on Mac OSX, this means moving all folders from here:

/Library/Frameworks/R.framework/Versions/2.15/Resources/library
to here:

/Library/Frameworks/R.framework/Versions/3.0/Resources/library
[where you’ll replace “2.15” and “3.0” with whatever versions you’re upgrading from and to. And only copy whatever packages aren’t already in the destination directory. i.e. don’t overwrite your new ‘base’ package with your old one - if you did, don’t worry, we’ll fix it in the next step anyway. If those paths don’t work for you, try using installed.packages() to find the proper pathnames.]
now you can update your packages by typing update.packages() in your RStudio console, and answering ‘y’ to all of the prompts.

update.packages(checkBuilt=TRUE)
class :
Version 7.3-7 installed in /Library/Frameworks/R.framework/Versions/3.0/Resources/library
Version 7.3-8 available at http://cran.rstudio.com
Update (y/N/c)? y
—etc—
finally, to reassure yourself that you have done everything, type these two commands in the RStudio console to see what you’ve got:
version
packageStatus()

方法二

采用包“installr”
install.packages(“installr”);
require(installr);

using the package:
updateR()

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值