R - upgrade all packages
- How to upgrade R?
There is this package, which you can use .... but you must have it installed before new version of R come ;-) - otherwise it is typical "catch 22":
Upgrade from 3.3.1 to 3.3.2 :
install.packages('installr', repos = 'http://cran.us.r-project.org')
package ‘installr’ is not available (for R version 3.3.1)
So basically - instead this go to https://cran.r-project.org/ and update using new R.
- How to upgrade all your existing R packages (libraries)?
And quick update - to the article ;-) - use this instead:
pkgs = as.data.frame(installed.packages(.libPaths()), stringsAsFactors=FALSE)$Package,
type = 'source'
update.packages()update.packages(ask = FALSE, dependencies = c('Suggests'))
Have a fun!