I'm creating a custom R package repository and would like to replicate the CRAN archive structure whereby old versions of packages are stored in the src/contrib/Archive/packageName/
directory. I'd like to use the install_version
function in devtools
(source here), but that function is dependent on having a CRAN-like archive structure instead of having all package versions in src/contrib/
.
Are there any R package repository management tools that facilitate the creation of this directory structure and other related tasks (e.g. updating the Archive.rds file)?
It would also be nice if the management tools handled the package type
logic on the repository side so that I can use the same install.packages()
or install_version()
code on a Linux server as on my local Mac (i.e. I don't have to use type="both"
or type="source"
when installing locally on a Mac).