feat: support remotes::install_version()

This commit is contained in:
Patrick Schratz 2024-12-14 00:06:39 +01:00
commit 0749467e6c
Signed by: pat-s
GPG key ID: 3C6318841EF78925

View file

@ -127,20 +127,12 @@ A Shiny dashboard providing a search functionality of the database and grouped s
### `remotes::install_version()`
`remotes::install_version()` searches for a `Meta/archive.rds` file in the `/src/contrib` directory.
This file must be a list of data frames containing information about the archived versions of the package.
Example:
```r
con <- gzcon(url(sprintf("%s/src/contrib/Meta/archive.rds", c("CRAN" = "https://cloud.r-project.org")), "rb"))
foo = readRDS(con)
foo[[1]]
```
Is supported by writing `Meta/archive.rds` during each package index update, listing all available archived packages.
### `pak::pak(package@version)`
`pak` searches for `Archive/<package>` and can install all versions listed in it.
`pak` searches for `Archive/<package>` and can install all versions it finds.
Ensure to use a clean cache if other repositories have been used previously.
If in doubt or when testing, call `pak::meta_clean(force = TRUE)`.