R:有什么方法可以在Windows中自动更新我的R?

时间:2014-04-15 11:37:51

标签: r

是的,我懒得下载最新版本的包。我想知道如何设置我的R,或者是否有一些代码可以在Windows中自动更新我的R.任何帮助表示赞赏。

1 个答案:

答案 0 :(得分:4)

也许这会帮助您解决问题:)

# installing/loading the package:
if(!require(installr)) { 
install.packages("installr"); require(installr)} #load / install+load installr

# using the package:
updateR() # this will start the updating process of your R installation.  It will check for newer versions, and if one is available, will guide you through the decisions you'd need to make.