pac_lifeduration | R Documentation |
a package life duration for a certain version or at a specific Date.
pac_lifeduration( pac, version = NULL, at = NULL, lib.loc = .libPaths(), repos = biocran_repos(), source = c("crandb", "cran") )
pac |
character a package name. |
version |
character package version, By default the newest version is taken. The local repository has priority, it version is available. Default: NULL |
at |
Date old version of package. Default: NULL |
lib.loc |
character vector. Is omitted for non NULL version. Default: |
repos |
character vector URLs of the repositories to use. By default checking CRAN and newest Bioconductor per R version. Default |
source |
character one of |
difftime
, number of days package version was the newest one.
Results are cached for 30 minutes with memoise
package.
The crandb
R packages database is a part of METACRAN
project, source:
Csárdi G, Salmon M (2022). pkgsearch
: Search and Query CRAN R Packages. https://github.com/r-hub/pkgsearch
, https://r-hub.github.io/pkgsearch/
.
For source = "cran"
the function will scrap two CRAN URLS. Works only with CRAN packages.
Please as a courtesy to the R CRAN, don't overload their servers by constantly using this function.
## Not run: pacs::pac_lifeduration("memoise") pacs::pac_lifeduration("memoise", source = "cran") pacs::pac_lifeduration("dplyr", version = "0.8.0") pacs::pac_lifeduration("dplyr", at = as.Date("2019-02-14")) # For Bioconductor packages it will work only for the newest per R version and installed ones. pacs::pac_lifeduration("S4Vectors") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.