Skip to content

An opinionated package for enhancing your R package documentation.

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

thisisnic/docreview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

2de2f87 Β· Feb 19, 2024
Aug 22, 2021
Feb 19, 2024
Aug 21, 2021
Feb 19, 2024
Aug 20, 2021
Aug 21, 2021
Aug 21, 2021
Aug 19, 2021
Feb 19, 2024
Aug 7, 2021
Aug 7, 2021
Aug 21, 2021
Aug 22, 2021
Feb 19, 2024
Feb 19, 2024
Aug 16, 2021

Repository files navigation

docreview πŸ“πŸ”Ž

CRAN_Status_Badge lifecycle R-CMD-check codecov

An opinionated package for enhancing your R package documentation.

When writing R packages, high quality documentation can make for a great experience for your users πŸ“¦πŸ“πŸŒŸπŸ™‚

You can use docreview to check that your R package documentation passes a number of checks relating to function documentation and vignette quality. βœ… βœ… ❌

Note that this package is in very early stages of its development and features are not yet stable, and so the package may undergo significant changes. If you plan to use it as part of a workflow, please be aware that new releases are very likely to introduce breaking changes to the config files, and so use the package (and any updates) with caution.

Installation

You can install docreview from CRAN.

install.packages("docreview")

If you’d like access to the most up-to-date features, you can install the development version from GitHhub. πŸ‘©πŸ½β€πŸ”§

remotes::install_github("thisisnic/docreview")

Usage

library(docreview)
pkg_path <- system.file("testpkg", package = "docreview")

# ensure you have rebuilt your vignettes if you want to run checks requiring the HTML files
tools::buildVignettes(dir = pkg_path, quiet = TRUE)

# Review docs in the package
package_review(path = pkg_path)

See the vignette for more detailed usage guides.

Current default review checks

CRAN version:

🎯 Vignettes have no more than 2000 words (warn) or 3000 words (fail)

🎯 Vignettes have no fewer than 100 words (warn) or 0 words (fail)

🎯 Vignettes have a Flesch-Kincaid readability score lower than 50 (warn) or 30 (fail)

🎯 All exported functions have examples in their documentation

Additional checks in the dev version:

🎯 All images in vignettes contain alt text