Skip to content

Instantly share code, notes, and snippets.

@Sillson
Created January 27, 2017 21:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sillson/63f4cbf83807c03c7e5b7400171bdb90 to your computer and use it in GitHub Desktop.
Save Sillson/63f4cbf83807c03c7e5b7400171bdb90 to your computer and use it in GitHub Desktop.
install latest version of all R packages that are currently installed
install.packages(
lib = lib <- .libPaths()[1],
pkgs = as.data.frame(installed.packages(lib), stringsAsFactors=FALSE)$Package,
type = 'source'
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment