# roxygen2

> Write R package documentation as comments next to your functions

Source: https://talira.ai/catalog/roxygen2-q8spdns4
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [developer tools / documentation / reference generators](https://talira.ai/categories/developer-tools/documentation/reference-generators), [languages / r](https://talira.ai/categories/languages/r)
- Platforms: linux, macos, windows[^2]
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Posit](https://talira.ai/orgs/posit.md)

roxygen2 generates an R package's documentation from specially formatted comments written next to the code they describe. Running roxygenise() (or devtools::document() from [devtools](https://talira.ai/catalog/devtools-3v733k6m.md)) turns those comments into the .Rd files in man/, the NAMESPACE file and, when needed, the Collate field in DESCRIPTION. It documents functions, datasets and packages, S3, S4, R6 and S7 classes, supports Markdown in comments, reuses and inherits documentation between topics, and can be extended with new tags.

## Links

- Website: https://roxygen2.r-lib.org/
- GitHub: https://github.com/r-lib/roxygen2
- Docs: https://roxygen2.r-lib.org/

## Problems it solves

- keep my R package's help pages in sync with the code without editing .Rd files by hand
- generate the NAMESPACE imports and exports for my R package automatically
- document S4 or R6 classes in an R package

## Features

- Generates .Rd help files from comments next to the code
- Writes the NAMESPACE file's imports and exports
- Documents functions, datasets, packages and S3, S4, R6 and S7 classes
- Markdown in documentation comments
- Reuses and inherits documentation between topics
- Extensible with new tags

## Trust

Overall: 0.51 out of 1.
Signals: maintenance 0.71, adoption 0.56, momentum 0.20, community 0.84, backing 0.30, extensibility 0.00.

- last commit 4 days ago
- 17 commits in the last 90 days
- latest release v8.1.1 51 days ago
- 667 GitHub stars
- 128 contributors
- backed by Posit

## Related

- Works with [devtools](https://talira.ai/catalog/devtools-3v733k6m.md)

## Sources

[^1]: https://github.com/r-lib/roxygen2/blob/main/DESCRIPTION (checked 28 Nov 2026)
[^2]: https://roxygen2.r-lib.org/ (checked 28 Nov 2026)
