Skip to content

Instantly share code, notes, and snippets.

@MichaelChirico
Created November 7, 2025 15:38
Show Gist options
  • Select an option

  • Save MichaelChirico/ad98d5f2df5c6d86b72e795f7e58d180 to your computer and use it in GitHub Desktop.

Select an option

Save MichaelChirico/ad98d5f2df5c6d86b72e795f7e58d180 to your computer and use it in GitHub Desktop.
{methods} load+unload loop test
db <- data.frame(available.packages())
methods_imports <- db |>
subset(grepl("(^|[^\\w.])methods($|[^\\w.])", Imports, perl=TRUE), "Package", drop=TRUE)
test_lib = '/media/WesternDigital3839/tmpCRAN'
# very slow, and requires some iteration to get SystemRequirements
install.packages(methods_imports, lib=test_lib)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment