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)as.package for more informationTRUE (the default), will update
and check documentation before running formal check.