The pre-installation of packages is needed when the checks run on a machine without internet access, or without compiler tools. By pre-installing on a machine with those resources, the packages will be available for binary installation via 'crancache' cache.
Currently, the "preinstallation" runs crancache::install_packages() to a dummy target. This will reinstall packages already installed, which can takes unnecessary time. We can improve on this by checking which packages are already in the crancache cache using, e.g.
The pre-installation of packages is needed when the checks run on a machine without internet access, or without compiler tools. By pre-installing on a machine with those resources, the packages will be available for binary installation via 'crancache' cache.
Currently, the "preinstallation" runs
crancache::install_packages()
to a dummy target. This will reinstall packages already installed, which can takes unnecessary time. We can improve on this by checking which packages are already in the crancache cache using, e.g.This doesn't account for available updates upstream (CRAN and Bioconductor) so we probably need to compare to
available.packages()
too, e.g.