This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#From https://stackoverflow.com/questions/1401904/painless-way-to-install-a-new-version-of-r | |
# Run in the old version of R (or via RStudio) | |
setwd("C:/Temp/") | |
packages <- installed.packages()[,"Package"] | |
save(packages, file="Rpackages") | |
# INSTALL NEW R VERSION | |
if(!require(installr)) { install.packages("installr"); require(installr)} #load / install+load installr | |
# See here for more on installr: https://www.r-statistics.com/2013/03/updating-r-from-r-on-windows-using-the-installr-package/ |