![]() ![]() So it is required extra procedures to move the packages. Here are 3 ways you can update R version in RStudio. 3 Solutions to update R on RStudio Solution 1) Manually install (Recommended if you don't care about the old packages) Note that we need to move the install R packages, which I will show how at the end. The first method is to download a new version of R from R website > CRAN. The new R version appear right after I install R and restart RStudio The new R version will be loaded automatically. Update : For Mac users, solution 3 is too painful and not working well for me. ![]() I would recommend to save your time from headache and use this method. Take note of your previous packages so you can install them again as needed. ![]() The R code you will need for updating R is: (credit goes to Cara Wogsland for the code) Installr is the R package which helps install and update software. You can find the tutorial on how to use installr to update RStudio on R-Statistics website. Install_github('andreacirilloac/updateR') Install.packages('devtools') #assuming it is not already installed The R code you will need is these 5 lines: (credit goes to jroberayalas for the code) Similar to installr, updateR is the package to help updating R on Mac OS. UpdateR(admin_password = 'Admin user password') ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |