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?
@eddelbuettel @josi Now there is even a package https://github.com/jangorecki/tools4pkgs :) 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"]))'
```