CRAN package health state at a specific Date or for a specific version
Source:R/lifeduration.R
pac_health.Rda package health for a certain version or at a specific Date. By default works for the newest package version. A healthy package was published for more than x days, where default is 14 days. CRAN team gives around one/two week to resolved a package which gave errors under the check page. The newest release is checked for any warnings/errors on the R CRAN package check page.
Arguments
- pac
charactera package name.- version
characterversion of a package. Default:NULL- at
Datefrom which to take the version. Default:NULL- limit
numericat least days to treat as healthy, ">=limit". Default: 14- scope
charactervector scope of the check, accepted values c("ERROR", "FAIL", "WARN", "NOTE"). Default:c("ERROR", "FAIL")- flavors
charactervector of CRAN server names to consider, possible names could be get withpacs::cran_flavors()$Flavor. Thepacs::match_flavors()function could be used to get CRAN server names matched for your localOS. By default all CRAN machines are consideredNULLvalue. Default:NULL- lib.loc
charactervector of search paths with local packages. Default:.libPaths()- repos
character vector repositories URLs to use. Default
https://cran.rstudio.com/- source
characterone ofc("cran", "crandb"). Using theMEATCRAN CRANDBor the direct web page download from CRAN. When"crandb"is set thenoptions(pacs.crandb_ntry = 3)andoptions(pacs.crandb_nsleep = 0.001)can be used to control the fetch."pacs.crandb_ntry"can be used to set the maximum number of try outs, by default 3."pacs.crandb_nsleep"can be used to set the sleep duration between fetch try outs, by default 0.001. Default:"cran"
Value
logical if a package is healthy, or NA when the required
release or CRAN check information is unavailable.
Note
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.