分享

Windows用户如何无痛升级R

 yjt2004us 2018-04-28


《R-3.5.0发布,又该升级了》,想起了我在2015年3月份的时候给实验室的小伙伴介绍怎么较为无痛地升级R,为了写这个邮件,我还专门在虚拟机里装了XP,并截屏,也是满满的诚意!截屏虽然是3年前,但依然是适用的!点点鼠标,搞定升级!


Rtools is a set of compiling tools that is necessary to compile packages that contain for example, C/C++ or Fortran codes.  Mostly, We don't need rtools, since most of the packages will be installed via binary form which was already compiled.

It is no harm to install rtools, and you may want to install one in case it is needed. I would like to introduce you the installr package, http://cran./web/packages/installr/index.html.

We can install it via install.packages command as usual. 



With this package, it is very easy to update R using the updateR() command. After R is updated, it will move all your installed packages to the library folder of new R, and update them to the newest version. There will be no pain in R upgrading.


AND of course, you can use install.Rtools() to install Rtools. It may throw error at the first time if you don't have XML package installed. XML package is needed to parse the Rtools webpage. If XML is not installed in your R, use install.packages('XML') to install it and run install.Rtools() again.
 


This package is only for Windows platform. For linux, we already have all the compiling tools and for Mac OS X, all we need is XCODE.

升级了R之后,记得使用《rvcheck大法,一条指令升级你所有R包哦》!

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多