Skip to content

httptest2

1.2.2Package record

Test Helpers for 'httr2'

0packages dependsuggested by 79
76.4Kdownloads / year
99.4%test coverage
8/13flavors OK

Overview

About

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.

Changes in 1.2.2
  • Compatibility with testthat 3.3.0

From NEWS.md in the release

Install

Health

CRAN checks
5NOTE8OK
Check messages
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'.

CRAN check page ↗

Slowest check: 1.6 min · r-oldrel-windows-x86_64
Status changes
  • NOTE8 OK, 5 NOTENow
  • NOTE11 OK, 2 NOTE2026-07-16
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.2.2
READMEYes · 327 wordsVignettesYes · 4 · dynamicNEWSYes · 100% structured · mentions 1.2.2Citation fileNoWebsiteYes · pkgdown
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

76.4K
CRAN downloads in the past year
Rank #1,656 · ~209/day · ~6.4K/mo
Daily download trend is not available in this view yet.
4.4K30 days
13.3K90 days
76.4K1 year
Compare downloads with other packages →
Also on598 r2u12 autocran

Repository

36Stars
4Forks
9Open issues
1Open PRs
6Releases
309Commits
13Commit identities
testingmockrhttp
309 commits · Last activity 2026-06-25 · 0% stars, 30d · Default branch at 1.2.2.9000, ahead of CRAN 1.2.2 (checked 2026-10-11) · Discussions: 2 posts
Responsiveness
How these are sampled
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

2025-07-20 · 342026-07-07 · 36
PracticesBeta

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.

Continuous integration (2)
GitHub ActionsR CMD check workflow

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

Docs source (3)
pkgdown

GitHub Pages site last deployed 2026-06-25 · The repository has a site deploy workflow

pkgdown site last built 2026-06-25

Reproducibility and dev environment (1)
Makefile
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
12 external dependencies (excludes base and recommended)

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.

Depends (0)
none
LinkingTo (0)
none
Enhances (0)
none

People & History

People (3)
Author, Maintainer since 0.1.0 (2022)
Contributor
Contributor
Releases (6)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 1.2.2Latest
    record
    2025-11-16 · current release · diff ↗
  • 1.2.1
    record
    2025-07-27 · diff ↗
  • 1.2.0
    record
    2025-06-27 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 1.1.0
    record
    2024-04-26 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 1.0.0
    record
    2023-11-07 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • 0.1.0
    record
    2022-01-10
  • R
    R 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")
Richardson, N., Keane, J., & Salmon, M. (2025). httptest2: Test Helpers for 'httr2' (Version 1.2.2) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for httptest2 version 1.2.2 [Data set]. HJJB, LLC. Data release v2026-10-18. https://doi.org/10.5281/zenodo.21843040

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.

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