revdep/check.R

#remotes::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")
))

revdepcheck::revdep_reset()
revdepcheck::revdep_check(num_workers = getOption("Ncpus", 8), quiet = FALSE, timeout = 30*60) ## 30 mins
revdepcheck::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/SpaDES.core documentation built on April 27, 2024, 1:15 p.m.