The premise of roxygen2 is simple: describe your functions in comments next to their definitions and roxygen2 will process your source code and comments to automatically generate .Rd files in man/, NAMESPACE, and, if needed, the Collate field in DESCRIPTION.

Learn more

To get started, first read vignette("roxygen2"). Then read more about the specific package component that you want to generate: