Displaying 1 result from an estimated 1 matches for "fancyrepos".
2022 Oct 29
1
tools:: extracting pkg dependencies from DCF
...39;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 will be already installed in your CI container, since R is).
>
>
> Now this does not take into account versioned dependencies, so it&...