check automatically builds a package before using
R CMD check as this is the recommended way to check packages. Note that this process runs in an independent realisation of R, so nothing in your current workspace will affect the process.
check(pkg = ".", document = TRUE, doc_clean = getOption("devtools.cleandoc"), cleanup = TRUE, cran = TRUE, check_version = FALSE, force_suggests = TRUE, args = NULL, quiet = FALSE)
- package description, can be path or package name. See
as.packagefor more information
TRUE(the default), will update and check documentation before running formal check.
TRUEthe check directory is removed if the check is successful - this allows you to inspect the results to figure out what went wrong. If
FALSEthe check directory is never removed.
TRUE(the default), check using the same settings as CRAN uses.
TRUE, will delete all files in the
mandirectory and regenerate them from scratch with roxygen. The default is to use the value of the
TRUE, check that the new version is greater than the current version on CRAN, by setting the
_R_CHECK_CRAN_INCOMING_environment variable to
FALSE, don't force suggested packages, by setting the
_R_CHECK_FORCE_SUGGESTS_environment variable to
- An optional character vector of additional command line arguments to be passed to
R CMD check.
TRUEsuppresses output from this function.
During compilation, debug flags are set with
Devtools specific checks will be run after the
R CMD check.
Documentation reproduced from package devtools, version 1.2. License: GPL (>= 2)