Skip to content

A Simple Package for Testing R Packages

11packages dependsuggested by 25
291.2Kdownloads / year
85.3%test coverage
13/13flavors OK

Overview

About

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

CRAN checks
13OK
Slowest check: 46 s · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-04
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-08
  • ERROR12 OK, 1 ERROR2026-06-07
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.2
README· In the repository, left out of the releaseVignettesNoNEWSYes · does not mention 1.2Citation fileNo
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

291.2K
CRAN downloads in the past year
Rank #805 · ~798/day · ~24.3K/mo
Daily download trend is not available in this view yet.
15.5K30 days
57K90 days
291.2K1 year
Compare downloads with other packages →
Also on8.2K r2u146 autocran5.9K conda_forge1.3K c2d4u

Repository

70Stars
13Forks
0Open issues
0Open PRs
17Releases
262Commits
7Commit identities
rr-packagetesting
262 commits · Last activity 2026-10-16 · +1.4% stars, 30d
Responsiveness
How these are sampled
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

2024-12-06 · 572026-09-30 · 70
PracticesBeta

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.

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 (1)

The repository owner accepts GitHub Sponsors

Docs source (1)

GitHub Pages site last deployed 2026-09-18

Coverage (1)
Coverage reporting (Codecov)
Show all practicesHide 1 practice
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • GitHub Copilotfirst seen 2026-02-17
    Seen in the repository: .github/copilot-instructions.md, .github/workflows/copilot-setup-steps.yml
    Pull request: opened by its own account
    Commits: 3 by its own account · at least 2 crediting it in the message
  • Claude Codefirst seen 2026-05-06
    Seen in the repository: CLAUDE.md
    Named in .Rbuildignore: .claude, CLAUDE.md
    Named in .gitignore: .claude
    Pull request it wrote: opened by a project member
    Commits: at least 49 crediting it in the message
Models named in its commits
  • Claude Opus 4.646 commits · May to Jun 2026
  • Claude Opus 4.82 commits · Sep 2026
  • Claude Sonnet 4.61 commit · Jun 2026
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
0 external dependencies (excludes base and recommended)

Installing testit adds no packages beyond those that come with R.

Depends (0)
none
Imports (0)
none
LinkingTo (0)
none
Suggests (0)
none
Enhances (0)
none

People & History

People (3)
Author, Maintainer since 0.1 (2013)
https://yihui.org
Contributor · added in 0.14
Contributor · added in 0.9
Releases (25)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • R
    R 3.5.0 released · 2018-04-23
  • R
    R 3.4.0 released · 2017-04-21
  • R
    R 3.3.0 released · 2016-05-03
  • R
    R 3.2.0 released · 2015-04-16
  • R
    R 3.1.0 released · 2014-04-10
  • 3.0.3Latest
    record
    2013-10-26 · current release · diff ↗
  • 3.0.2
    record
    2013-07-30 · diff ↗
  • 1.2
    record
    2026-10-15 · diff ↗ ·
    added 1 export
    has_match
Show 23 earlier eventsHide 23 earlier events

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")
Xie, Y., Kalibera, T., & Mortimer, S. (2026). testit: A Simple Package for Testing R Packages (Version 1.2) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for testit version 1.2 [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