Current R version as 3.4.3 ,indicated at start-up.
Check the current R version
R.version
Define list of packages to check and load
list.of.packages = c('devtools')
Check packed installed and install if not.
new.packages = list.of.packages[!(list.of.packages %in% installed.packages()[,"Package"])]
if (length(new.packages)) install.packages(new.packages)
Load package
library(devtools)
Intall updateR package
install_github('andreacirilloac/updateR')
Load the updateR package, and call the function to start the update.
library(updateR)
updateR(admin_password = "mySecretPassword")
Progress of the installation as indicated below.
Print version of R after update
R.version