revdep/check.R

if (packageVersion("devtools") < "2.0.1") {
  library("devtools")

  revdep_check(env_vars = c(DISPLAY = ":0"))
  revdep_check_save_summary()
  revdep_check_print_problems()
} else {
  #devtools::install_github("r-lib/revdepcheck")
  library("revdepcheck")

  revdep_reset()
  revdepcheck::revdep_check(num_workers = getOption("Ncpus", 4), timeout = 30*60) ## 30 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/fpCompare documentation built on Aug. 21, 2022, 10:40 p.m.