A Simple Package for Testing R Packages
Overview
A minimal, dependency-free testing framework for R packages. Write tests as simple R expressions that return TRUE, using assert() for assertions (with informative error messages on failure), has_error() / has_warning() / has_message() for testing conditions, and test_pkg() to run all tests with full access to internal (non-exported) package functions. Snapshot testing via Markdown files is also supported.
Install
Health
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-08
- ERROR12 OK, 1 ERROR2026-06-07
- OK14 OK2026-03-10
Documentation
- Help pages
- 4
- Examples that run
- 75%3 run in a plain check · 1 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)
- 95%
- Median days to close, 50 most recently updated closed issues
- 1
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
6 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/yihui/testit on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
The repository owner accepts GitHub Sponsors
GitHub Pages site last deployed 2026-09-18
Show all practicesHide 1 practice
This repository shows signs of AI coding tools.
- GitHub Copilotfirst seen 2026-02-17Seen in the repository: .github/copilot-instructions.md, .github/workflows/copilot-setup-steps.ymlPull request: opened by its own accountCommits: 3 by its own account · at least 2 crediting it in the message
- Claude Codefirst seen 2026-05-06Seen in the repository: CLAUDE.mdNamed in .Rbuildignore: .claude, CLAUDE.mdNamed in .gitignore: .claudePull request it wrote: opened by a project memberCommits: at least 49 crediting it in the message
- Claude Opus 4.646 commits · May to Jun 2026
- Claude Opus 4.82 commits · Sep 2026
- Claude Sonnet 4.61 commit · Jun 2026
Dependencies
Installing testit adds no packages beyond those that come with R.
Show all 36 packagesHide all 36 packages
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- RR 3.5.0 released · 2018-04-23
- RR 3.4.0 released · 2017-04-21
- RR 3.3.0 released · 2016-05-03
- RR 3.2.0 released · 2015-04-16
- RR 3.1.0 released · 2014-04-10
- 3.0.3Latest
- 3.0.22013-07-30 · diff ↗
- 1.2
Show 23 earlier eventsHide 23 earlier events
- 1.1.22026-09-04 · diff ↗
- 1.12026-06-18 · diff ↗
- 1.0
- 0.182026-04-21 · diff ↗
- 0.172026-03-06 · diff ↗
- 0.162026-02-23 · diff ↗
- 0.152025-12-19 · diff ↗
- 0.142025-12-06 · diff ↗
- 0.132021-04-14 · diff ↗
- 0.122020-09-25 · diff ↗
- 0.112019-11-12 · diff ↗
- 0.102019-10-01 · diff ↗
- 0.92018-12-05 · diff ↗
- 0.82018-06-14 · diff ↗
- 0.72017-05-22 · diff ↗
- 0.62016-11-09 · diff ↗
- 0.5
- 0.42014-12-20 · diff ↗
- 0.32013-10-26 · diff ↗
- 0.2.12013-07-30 · diff ↗
- 0.22013-07-29 · diff ↗
- 0.12013-06-28
- RR 3.0.0 released · 2013-04-03
Package metadata
- First published
- 2013-06-28
- Total releases
- 25 / 13 yrs
- License
- MIT + file LICENSE OSI · relicensed from GPL-3 in 0.14
- Download size
- 23 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("testit")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-17, which the citation names so these numbers can be found later. More on citing and the projects behind them.