Last active
October 27, 2022 14:57
-
-
Save simonrolph/cbcc1c4706b5bbcf8ff596ebef8b5ae1 to your computer and use it in GitHub Desktop.
Attempt to load all R packages
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
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