revdep/check.R

#devtools::install_github("r-lib/revdepcheck")
library("revdepcheck")

options(repos = c(
  PE = "https://predictiveecology.r-universe.dev",
  
  ## note this is counter to the "Canonical CRAN.r-project.org" for CRAN packages,
  ## but revdep/ directory is .Rbuildignored and this is used for revdep checks only.
  CRAN = paste0("https://", "cloud.", "r-project.", "org")
))

revdep_reset()
revdepcheck::revdep_check(num_workers = getOption("Ncpus", 4), timeout = 40*60) ## 40 mins
revdep_report_cran() ## update cran-comments with this output

### email maintainers of revdep packages (need to edit: `revdep/email.yml`)
#revdep_email(type = "broken") ## will send via gmail
#revdep_email(type = "failed") ## will send via gmail
PredictiveEcology/reproducible documentation built on June 3, 2024, 10:05 p.m.