revdep_check()
to run check_cran()
on all downstream
dependencies. Summarises the results with revdep_check_summary
and
save logs with revdep_check_save_logs
.revdep_check_save_logs(res, log_dir = "revdep")revdep_check_save_summary(res, log_dir = "revdep")
revdep_check_summary(res)
revdep_check(pkg = ".", recursive = FALSE, ignore = NULL,
dependencies = c("Depends", "Imports", "Suggests", "LinkingTo"),
libpath = getOption("devtools.revdep.libpath"), srcpath = libpath,
bioconductor = FALSE, type = getOption("pkgType"),
threads = getOption("Ncpus", 1), check_dir = tempfile("check_cran"))
revdep_check
TRUE
look for full set of recursive dependencies.revdep_check
to avoid packages with installation problems
or extremely long check timesTRUE
also look for dependencies amongst
bioconductor packages.install.packages()
."Ncpus"
or 1
if unset.check_dir
.
Summaries of all ERRORs and WARNINGs will be stored in
check_dir/00check-summary.txt
.pkg
(in special library, see below).pkg
.R CMD check
on each package.pkg
(so other reverse dependency checks don't
use the development version instead of the CRAN version)revdep_check
uses a temporary library to store any packages
that are required by the packages being tested. This ensures that they don't
interfere with your default library, but means that if you restart R
between checks, you'll need to reinstall all the packages. If you're
doing reverse dependency checks frequently, I recommend that you create
a directory for these packages and set options(devtools.revdep.libpath)
.revdep_maintainers()
to get a list of all revdep
maintainers.# Run R CMD check on all downstream dependencies of ggplot2
res <- revdep_check("ggplot2")
revdep_check_summary(res)
revdep_check_save_logs(res)
Run the code above in your browser using DataCamp Workspace