document

0th

Percentile

Use roxygen to document a package.

This function is a wrapper for the roxygen2::roxygenize() function from the roxygen2 package. See the documentation and vignettes of that package to learn how to use roxygen.

Usage
document(pkg = ".", roclets = NULL, quiet = FALSE)
Arguments
pkg

The package to use, can be a file path to the package or a package object. See as.package() for more information.

roclets

Character vector of roclet names to use with package. The default, NULL, uses the roxygen roclets option, which defaults to c("collate", "namespace", "rd").

quiet

if TRUE suppresses output from this function.

See Also

roxygen2::roxygenize(), browseVignettes("roxygen2")

Aliases
  • document
Documentation reproduced from package devtools, version 2.3.1, License: GPL (>= 2)

Community examples

IOMIDS at Dec 19, 2019 devtools v2.2.1

Building the documentation: ``` library(devtools) setwd('/path/to/newpackage/') document() ``` To learn more see [R courses](https://iomids.com/kurs-r-data-science/?pk_campaign=rdocumentation.org&pk_kwd=devtools_document) by [IOMIDS](https://iomids.com/?pk_campaign=rdocumentation.org&pk_kwd=devtools_document)