Skip to content

exampletestr

1.7.3Package record

Help for Writing Unit Tests Based on Function Examples

0packages depend
8.7Kdownloads / year
91.8%test coverage
13/13flavors OK

Overview

About

Take the examples written in your documentation of functions and use them to create shells (skeletons which must be manually completed by the user) of test files to be tested with the 'testthat' package. Sort of like python 'doctests' for R.

Changes in 1.7.3

BUG FIXES

  • glue had breaking changes for which exampletestr needed to be fixed.

From NEWS.md in the release

Install

Health

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

none known

Documentation

In release 1.7.3
README· In the repository, left out of the releaseVignettesYes · 3 · dynamicNEWSYes · 100% structured · mentions 1.7.3Citation fileYes · cites a publicationWebsiteYes · pkgdown
Help pages
1
Examples that run
0%1 never run
Exported functions with examples
100%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
0%

Downloads

8.7K
CRAN downloads in the past year
Rank #5,645 · ~24/day · ~727/mo
Daily download trend is not available in this view yet.
67730 days
1.4K90 days
8.7K1 year
Compare downloads with other packages →
Also on66 r2u7 autocran

Repository

36Stars
3Forks
0Open issues
0Open PRs
11Releases
145Commits
5Commit identities
License file reads as GPL-3.0 · 145 commits · Last activity 2024-10-07
Responsiveness
How these are sampled
PRs merged (all time)
75%
Median days to close, 50 most recently updated closed issues
14
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2023-08-14 · 352026-07-07 · 36
PracticesBeta

13 development-tooling and community-health practices detected across 8 families in the upstream repository

Checks run against github.com/rorynolan/exampletestr on 2026-10-11.

Continuous integration (2)
GitHub ActionsR CMD check workflow

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

Governance and community (2)
Code of conductContributing guide
Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2024-10-07 · The repository has a site deploy workflow

Coverage (1)
Coverage reporting
Show all practicesHide 4 practices
CRAN release process (1)
cran-comments.md
Research and citation (1)
codemeta.json
Lint, format, editor (1)
RStudio project
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
21 external dependencies (excludes base and recommended)

Installing exampletestr adds 72 packages (37 with compiled code, 32 MB of source tarballs). Heaviest: stringi 11 MB, pak 3.8 MB, fs 1.4 MB.

Depends (1)
R >= 3.5
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (4)
Author, Maintainer since 0.3.0 (2017)
Reviewer · added in 1.4.0
Reviewer · added in 1.4.0
Thesis advisor
Releases (25)

Pick two releases to compare their code metrics.

Show 20 earlier eventsHide 20 earlier events

Package metadata

First published
2017-03-18
Total releases
25 / 9 yrs
License
GPL-3 OSI
Minimum R
≥ 3.5
Download size
47 KB

Cite

Cite this package

Run in R for the authors' entry:

citation("exampletestr")

The package provides a citation file, so citation() returns the authors' own entry.

It points to 10.12688/wellcomeopenres.11635.2.

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 exampletestr version 1.7.3 [Data set]. HJJB, LLC. Data release v2026-10-17. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-17, 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