Utils and 'RStudio' Addins to Make Testing Even More Fun
Overview
Utility functions and 'RStudio' addins for writing, running and organizing automated tests. Integrates tightly with the packages 'testthat', 'devtools' and 'usethis'. Hotkeys can be assigned to the 'RStudio' addins for running tests in a single file or to switch between a source file and the associated test file. In addition, testthis provides function to manage and run tests in subdirectories of the test/testthat directory.
use_testdata_raw()gainsnameargument similar tousethis::use_data(). Ifnameis provided, a script file for a dataset of that name is created (and opened if you are using RStudio) (#15, thanks @TylerGrantSmith)- removed some brittle tests for compatibility with usethis 1.6.0 (#16, thanks @jennybc)
- don't load helpers twice in
test_this()(#13, thanks @krlmlr)
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 11includes a package overview page
- Examples that run
- 0%3 never run
- Exported functions with examples
- 30%
- Documented parameters
- 81%
- Return-value docs
- 80%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 75%
- Median days to close, 50 most recently updated closed issues
- 7
- 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
7 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/s-fleck/testthis on 2026-10-22.
Show all practicesHide 1 practice
Dependencies
Installing testthis adds 96 packages (46 with compiled code, 57 MB of source tarballs). Heaviest: stringi 11 MB, bslib 5.6 MB, pak 3.8 MB.
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
- 1.1.1Latest
- 1.1.02019-05-27 · diff ↗ ·
removed 2 exports
test_with_skip, use_testignoreadded 3 exports
find_testdata, test_coverage, test_index - RR 3.6.0 released · 2019-04-26
- 1.0.4
- RR 3.5.0 released · 2018-04-23
- 1.0.32018-01-06 · diff ↗
- 1.0.22017-10-27
- RR 3.4.0 released · 2017-04-21
Package metadata
- First published
- 2017-10-27
- Total releases
- 5 / 9 yrs
- License
- MIT + file LICENSE OSI
- Download size
- 41 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("testthis")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.