feat: support remotes::install_version()
This commit is contained in:
parent
fc6b977a1f
commit
0749467e6c
1 changed files with 6 additions and 11 deletions
14
README.md
14
README.md
|
|
@ -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)`.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue