check_packages_in_dir(dir, check_args = character(), check_args_db = list(), reverse = NULL, check_env = character(), xvfb = FALSE, Ncpus = getOption("Ncpus", 1L), clean = TRUE, ...)
summarize_check_packages_in_dir_results(dir, all = TRUE, full = FALSE)
summarize_check_packages_in_dir_timings(dir, all = FALSE, full = FALSE)
summarize_check_packages_in_dir_depends(dir, all = FALSE)
R CMD check
, or a list of length two of such character
vectors to be used for checking packages and reverse dependencies,
respectively.R CMD check
, with names the respective
package names."repos"
,
"which"
, or "recursive"
, giving the repositories to
use for locating reverse dependencies (default:
getOption("repos")
), the types of reverse dependencies
(default: c("Depends", "Imports", "LinkingTo")
), and
indicating whether to also check reverse dependencies of reverse
dependencies (and so on), or NULL
(default), in which case no
reverse dependencies are checked.check_packages_in_dir
allows to conveniently check source
package .tar.gz files in the given directory dir
, along
with their reverse dependencies as controlled by reverse
. The "which"
component of reverse
can also be a list, in
which case reverse dependencies are obtained for each element of the
list and the corresponding element of the "recursive"
component
of reverse
(which is recycled as needed).
If needed, the source .tar.gz files of the reverse dependencies
to be checked as well are downloaded into dir
(and removed at
the end if clean
is true). Next, all packages (additionally)
needed for checking are installed to the Library subdirectory
of dir
. Then, all .tar.gz files are checked using the
given arguments and environment variables, with outputs and messages
to files in the Outputs subdirectory of dir
. The
*.Rcheck directories with the check results of the reverse
dependencies are renamed by prefixing their base names with
rdepends_.
Results and timings can conveniently be summarized using
summarize_check_packages_in_dir_results
and
summarize_check_packages_in_dir_timings
, respectively.
Installation and checking is performed in parallel if Ncpus
is
greater than one: this will use mclapply
on
Unix and parLapply
on Windows.