check automatically builds a package before using
R CMD check as this is the recommended way to
check pakcages. Note that this process runs in an
independent realisation of R, so nothing in your current
workspace will affect the proces.check(pkg = NULL, document = TRUE, cleanup = TRUE)as.package for more informationTRUE (the default), will update
and check documentation before running formal check.TRUE the check directory is
removed if the check is successful - this allows you to
inspect the results to figure out what went wrong. If
FALSE the check directory is never removed.