Rev 62116 | Rev 64937 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
% File src/library/tools/man/check_packages_in_dir.Rd% Part of the R package, http://www.R-project.org% Copyright 2013-2013 R Core Team% Distributed under GPL 2 or later\name{check_packages_in_dir}\alias{check_packages_in_dir}\alias{summarize_check_packages_in_dir_depends}\alias{summarize_check_packages_in_dir_results}\alias{summarize_check_packages_in_dir_timings}\title{Check Source Packages and Their Reverse Dependencies}\description{Check source packages in a given directory, optionally with theirreverse dependencies.}\usage{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)summarize_check_packages_in_dir_timings(dir, all = FALSE,full = FALSE)summarize_check_packages_in_dir_depends(dir, all = FALSE)}\arguments{\item{dir}{a character string giving the path to the directory withthe source \file{.tar.gz} files to be checked.}\item{check_args}{a character vector with arguments to be passed to\command{R CMD check}, or a list of length two of such charactervectors to be used for checking packages and reverse dependencies,respectively.}\item{check_args_db}{a named list of character vectors with argumentsto be passed to \command{R CMD check}, with names the respectivepackage names.}\item{reverse}{a list with names partially matching \code{"repos"},\code{"which"}, or \code{"recursive"}, giving the repositories touse for locating reverse dependencies (default:\code{getOption("repos")}), the types of reverse dependencies(default: \code{c("Depends", "Imports", "LinkingTo")}), andindicating whether to also check reverse dependencies of reversedependencies (and so on), or \code{NULL} (default), in which case noreverse dependencies are checked.}\item{check_env}{a character vector of name=value strings to setenvironment variables for checking, or a list of length two of suchcharacter vectors to be used for checking packages and reversedependencies, respectively.}\item{xvfb}{a logical indicating whether to perform checking inside avirtual framebuffer X server (Unix only), or a character vector ofXvfb options for doing so.}\item{Ncpus}{the number of parallel processes to use for parallelinstallation and checking.}\item{clean}{a logical indicating whether to remove the downloadedreverse dependency sources.}\item{...}{currently not used.}\item{all}{a logical indicating whether to also summarize the reversedependencies checked.}\item{full}{a logical indicating whether to also summarize checkexample timings (if available).}}\details{\code{check_packages_in_dir} allows to conveniently check sourcepackage \file{.tar.gz} files in the given directory \code{dir}, alongwith their reverse dependencies as controlled by \code{reverse}.If needed, the source \file{.tar.gz} files of the reverse dependenciesto be checked as well are downloaded into \code{dir} (and removed atthe end if \code{clean} is true). Next, all packages (additionally)needed for checking are installed to the \file{Library} subdirectoryof \code{dir}. Then, all \file{.tar.gz} files are checked using thegiven arguments and environment variables, with outputs and messagesto files in the \file{Outputs} subdirectory of \code{dir}. The\file{*.Rcheck} directories with the check results of the reversedependencies are renamed by prefixing their base names with\samp{rdepends_}.Results and timings can conveniently be summarized using\code{summarize_check_packages_in_dir_results} and\code{summarize_check_packages_in_dir_timings}, respectively.Installation and checking is performed in parallel if \code{Ncpus} isgreater than one: this will use \code{\link[parallel]{mclapply}} onUnix and \code{\link[parallel]{parLapply}} on Windows.}\note{This functionality is still experimental: interfaces may change infuture versions.}\keyword{utilities}