https://thisisnic.github.io/docreview/
An opinionated package for enhancing your R package documentation.
https://thisisnic.github.io/docreview/
documentation r r-package rstats
Last synced: 2 months ago
JSON representation
An opinionated package for enhancing your R package documentation.
- Host: GitHub
- URL: https://thisisnic.github.io/docreview/
- Owner: thisisnic
- License: other
- Created: 2021-05-21T18:13:38.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-02-19T17:03:09.000Z (over 1 year ago)
- Last Synced: 2025-04-05T07:03:45.614Z (3 months ago)
- Topics: documentation, r, r-package, rstats
- Language: HTML
- Homepage: https://thisisnic.github.io/docreview/
- Size: 667 KB
- Stars: 17
- Watchers: 1
- Forks: 1
- Open Issues: 22
-
Metadata Files:
- Readme: README.Rmd
- Changelog: NEWS.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome-r-pkgtools - `{docreview}`
README
---
output: github_document
---```{r setup, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-"
)
```# docreview 📝🔎
[](https://cran.r-project.org/package=docreview)
[](https://lifecycle.r-lib.org/articles/stages.html)
[](https://github.com/thisisnic/docreview/actions?query=workflow%3AR-CMD-check)
[](https://app.codecov.io/gh/thisisnic/docreview)_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.
```{r, eval=FALSE}
install.packages("docreview")
```If you'd like access to the most up-to-date features, you can install the development version from GitHhub. 👩🏽🔧
```{r, eval=FALSE}
remotes::install_github("thisisnic/docreview")
```## Usage
```{r, include = FALSE}
devtools::load_all()```
```{r, eval = FALSE}
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)
```
```{r, include = FALSE}
devtools::load_all()
pkg_path <- system.file("testpkg", package = "docreview")
package_review(path = pkg_path)
```See [the vignette](https://thisisnic.github.io/docreview/articles/docreview.html) 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