devtools::document()
requires a DESCRIPTION file, which in general we don't
include in analysis projects. Sometimes we want to produce development
documentation for functions in analysis projects so we can describe options
and behaviour. pkgtools::document
will also work in a non package project
to produce .Rd
files in the man
directory for any functions declared in
the R
subfolder. It also override the default behaviour of ?
to return
the development documentation of matching functions in the current project.
document(package.dir = ".", roclets = NULL, quiet = FALSE)
Character vector of roclet names to use with package.
The default, NULL
, uses the roxygen roclets
option,
which defaults to c("collate", "namespace", "rd")
.
if TRUE
suppresses output from this function.
nothing