This function needs only to be run when R is updated (i.e once a year). It will look at the old list of packages that where installed and will try to install them. It will also returns a list of the packages that failed (probably mostly Github packages).

updatePackages(oldLib, newLib = .libPaths()[1])

Arguments

oldLib

where the old packages where stored

newLib

where the new packages will be stored