Skip to content

Instantly share code, notes, and snippets.

@adamhsparks
Last active January 15, 2018 04:58
Show Gist options
  • Select an option

  • Save adamhsparks/10a1bf8ab95ac8237b0521c2a85c09bb to your computer and use it in GitHub Desktop.

Select an option

Save adamhsparks/10a1bf8ab95ac8237b0521c2a85c09bb to your computer and use it in GitHub Desktop.
Update all installed R packages from CRAN. Copied from https://rmkrug.wordpress.com/2014/11/10/update-all-user-installed-r-packages-again/
lib <- .libPaths()[1]
pkgs <- as.data.frame(installed.packages(lib), stringsAsFactors=FALSE)$Package
install.packages(pkgs, type = "source")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment