Skip to content

Instantly share code, notes, and snippets.

@simonrolph
Last active October 27, 2022 14:57
Show Gist options
  • Save simonrolph/cbcc1c4706b5bbcf8ff596ebef8b5ae1 to your computer and use it in GitHub Desktop.
Save simonrolph/cbcc1c4706b5bbcf8ff596ebef8b5ae1 to your computer and use it in GitHub Desktop.
Attempt to load all R packages
packages <- as.data.frame(installed.packages())
for (i in 1:length(packages$Package)){
try({
library(packages$Package[i], character.only = TRUE)
})
print(packages$Package[i])
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment