Generate Tests from Examples Using 'roxygen' and 'testthat'
Overview
Creates 'testthat' tests from 'roxygen' examples using simple tags.
- Bugfix: @testRaw lines were producing empty lines in .Rd files. Thanks @MLopez-Ibanez.
- This will be the last release on CRAN. Future versions will be available as GitHub releases or via https://r-universe.dev/.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK14 OK2026-03-10
Documentation
- Help pages
- 10includes a package overview page
- Examples that run
- 0%2 never run
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 1
- Median days to close, 50 most recently updated closed PRs
- 1
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
9 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/hughjonesd/doctest on 2026-10-21.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-07-29 · The repository has a site deploy workflow
pkgdown site last built 2026-07-29
Show all practicesHide 1 practice
This repository shows signs of AI coding tools.
- GitHub Copilotfirst seen 2025-12-04Commits: 3 by its own account
- Claude Codefirst seen 2026-07-29Named in .Rbuildignore: .claude
Dependencies
Installing doctest adds 36 packages (19 with compiled code, 9.7 MB of source tarballs). Heaviest: fs 1.4 MB, jsonlite 1.0 MB, vctrs 1.0 MB.
Code & Tests
People & History
Package metadata
- First published
- 2023-04-28
- Total releases
- 4 / 3 yrs
- License
- MIT + file LICENSE OSI
- Download size
- 902 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("doctest")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.