Test Helpers for 'httr2'
Overview
Testing and documenting code that communicates with remote servers can be painful. This package helps with writing tests for packages that use 'httr2'. It enables testing all of the logic on the R sides of the API without requiring access to the remote service, and it also allows recording real API responses to use as test fixtures. The ability to save responses and load them offline also enables writing vignettes and other dynamic documents that can be distributed without access to a live server.
- Compatibility with
testthat3.3.0
From NEWS.md in the release
Install
Health
NOTER code for possible problemsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64
Found calls to structure() using deprecated special names: httptest2/R/content-type.R (.Names: 1) '.Names' should be changed to 'names'.
- NOTE8 OK, 5 NOTENow
- NOTE11 OK, 2 NOTE2026-07-16
- OK14 OK2026-03-10
Documentation
- Help pages
- 20 (7 internal)includes a package overview page
- Examples that run
- 100%7 run in a plain check (2 of them under a condition)
- Exported functions with examples
- 39%
- Documented parameters
- 98%
- Return-value docs
- 94%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 96%
- 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
6 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/nealrichardson/httptest2 on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-06-25 · The repository has a site deploy workflow
pkgdown site last built 2026-06-25
Dependencies
Installing httptest2 adds 31 packages (17 with compiled code, 9.9 MB of source tarballs). Heaviest: fs 1.4 MB, openssl 1.1 MB, jsonlite 1.0 MB.
Show the 48 most downloaded packagesHide the 48 most downloaded packages
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 1.2.2Latest
- 1.2.12025-07-27 · diff ↗
- 1.2.02025-06-27 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 1.1.02024-04-26 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 1.0.02023-11-07 · diff ↗
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- 0.1.02022-01-10
- RR 4.1.0 released · 2021-05-18
Package metadata
- First published
- 2022-01-10
- Total releases
- 6 / 4 yrs
- License
- MIT + file LICENSE OSI
- Download size
- 102 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("httptest2")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-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.