Skip to content

doctest

0.4.1Package record

Generate Tests from Examples Using 'roxygen' and 'testthat'

0packages dependsuggested by 2
10.8Kdownloads / year
97.3%test coverage
13/13flavors OK

Overview

About

Creates 'testthat' tests from 'roxygen' examples using simple tags.

Changes in 0.4.1
  • 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

CRAN checks
13OK
Slowest check: 2.0 min · r-oldrel-macos-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.4.1
READMEYes · 285 wordsVignettesYes · 2 · dynamicNEWSYes · 100% structured · mentions 0.4.1Citation fileNoWebsiteYes · pkgdown
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

10.8K
CRAN downloads in the past year
Rank #2,781 · ~30/day · ~902/mo
Daily download trend is not available in this view yet.
1.5K30 days
5.3K90 days
10.8K1 year
Compare downloads with other packages →
Also on108 r2u4 autocran

Repository

36Stars
4Forks
4Open issues
1Open PRs
4Releases
181Commits
4Commit identities
181 commits · Last activity 2026-07-29 · 0% stars, 30d
Responsiveness
How these are sampled
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

2025-09-08 · 312026-08-01 · 36
PracticesBeta

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.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-07-29 · The repository has a site deploy workflow

pkgdown site last built 2026-07-29

Coverage (1)
Coverage reporting (Codecov)
CRAN release process (1)
cran-comments.md
Show all practicesHide 1 practice
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • GitHub Copilotfirst seen 2025-12-04
    Commits: 3 by its own account
  • Claude Codefirst seen 2026-07-29
    Named in .Rbuildignore: .claude
Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
11 external dependencies (excludes base and recommended)

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.

Depends (0)
none
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect
Suggested by 2
Suggests, most downloaded first

People & History

People (1)
Author, Maintainer since 0.2.0 (2023)
Releases (4)

Pick two releases to compare their code metrics.

  • 0.4.1Latest
    record
    2026-07-29 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 0.4.0
    record
    2026-02-19 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 0.3.0
    record
    2024-01-11 · diff ↗
  • 0.2.0
    record
    2023-04-28
  • R
    R 4.3.0 released · 2023-04-21

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")
Hugh-Jones, D. (2026). doctest: Generate Tests from Examples Using 'roxygen' and 'testthat' (Version 0.4.1) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for doctest version 0.4.1 [Data set]. HJJB, LLC. Data release v2026-10-23. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy