Joshua,
Doing this well "horizontally" (across different OSs even though for just one
domain, like CRAN and R) is difficult.
We have decent "vertical" solutions (with one OS / distro) for (at least
some) use / deployment cases as I show in a brief blog post and video here
http://dirk.eddelbu
If this is the behaviour you are looking for, you might like to try
pak (https://pak.r-lib.org)
# Create a temporary library
path <- tempfile()
dir.create(path)
.libPaths(path)
pak::pkg_install("scales")
#> → Will install 8 packages:
#> colorspace (1.4-1), labeling (0.3), munsell (0.5.0), R6 (2