search for: needed_pkg

Displaying 1 result from an estimated 1 matches for "needed_pkg".

Did you mean: needed_pkgs
2022 Oct 29
1
tools:: extracting pkg dependencies from DCF
...nd run R CMD check on the package. > > > Really what you're looking for though, is to install all the dependencies which aren't present right? Excluding base packages is just a particular way to do that under certain assumptions about the CI environment. > > So > > > needed_pkgs <- setdiff(package_dependencies(...), installed.packages()[,"Package"]) > install.packages(needed_pkgs, repos = fancyrepos) > > > will do what you want without installing the package itself, if that is important. This will filter out base and recommended packages (which wi...