Process a package with the Rd, namespace and collate roclets.
This is the workhorse function that uses roclets, the built-in document
tranformation functions, to build all documentation for a package. See
the documentation for the individual roclets,
namespace_roclet(), and for
for more details.
roxygenize(package.dir = ".", roclets = NULL, load_code = env_package, clean = FALSE)
roxygenise(package.dir = ".", roclets = NULL, load_code = env_package, clean = FALSE)
Location of package top level directory. Default is working directory.
Character vector of roclet names to use with package. This defaults to
NULL, which will use the
rocletsfields in the list provided in the
RoxygenDESCRIPTION field. If none are specified, defaults to
c("collate", "namespace", "rd").
A function used to load all the R code in the package directory. It is called with the path to the package, and it should return an environment containing all the sourced code.
TRUE, roxygen will delete all files previously created by roxygen before running each roclet.
Note that roxygen2 is a dynamic documentation system: it works by inspecting loaded objects in the package. This means that you must be able to load the package in order to document it.