mastodon.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
The original server operated by the Mastodon gGmbH non-profit

Administered by:

Server stats:

354K
active users

GHA power users. I have setup-r-dependencies workflow that installs _all_ packages in DESCRIPTION. Well, one of those isn't available and won't ever be. How can I only install `Imports` packages?

Dirk Eddelbuettel

@josi There is a lovely snippet I recently game across in a Dockerfile from the data.table repo. Base only, and parses DESCRIPTION. Easy enough for you to adjust to only Imports as desired:

@eddelbuettel @josi Now there is even a package github.com/jangorecki/tools4pk :) quite interesting approach as well was given by Gabriel Becker on mailing list:
```
Rscript -e 'stopifnot(file.copy("DESCRIPTION",
file.path(tdir<-tempdir(), "PACKAGES")));

db<-available.packages(paste0("file://", tdir));
install.packages(setdiff(tools::package_dependencies(read.dcf("DESCRIPTION",
fields="Package")[[1L]], db, which="most")[[1L]],
installed.packages(priority="high")[,"Package"]))'
```

GitHubGitHub - jangorecki/tools4pkgs: Tools for Package AdministrationTools for Package Administration. Contribute to jangorecki/tools4pkgs development by creating an account on GitHub.