install.packages("installr")
library("installr")
updateR()
Go through prompts, but don't copy over all packages into the new library
as this can result in many packages needing to be manually updated as they do not
work with the current version of R.