-
-
Save rBatt/6eebec3cd1eff352fcbe0e4ebae6e1b5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Get a list of all your installed packages (so that you can reinstall them after updating R) | |
a <- installed.packages() | |
my_pkgs <- dimnames(a)[[1]] | |
save(my_pkgs, file="my_pkgs.RData") | |
# exit R, reopen R, then continue to following | |
load("my_pkgs.RData") | |
install.packages("a") | |
missing_packages <- a[!a%in%installed.packages()] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment