Skip to content

httptest2

Test Helpers for 'httr2'

v1.2.2 · Nov 16, 2025 · MIT + file LICENSE

Description

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.

Downloads

6.3K

Last 30 days

1546th

17.9K

Last 90 days

68.9K

Last year

Trend: +9.4% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (48)

Dependency Network

Dependencies Reverse dependencies digest httr2 jsonlite rlang testthat (>= 3.1.5) ARDECO LLMR Rigma aisdk allcontributors amapGeocode brightspaceR comtradr congress consibiocloudclient ctoclient emburden f1dataR feltr forcis +33 more reverse deps httptest2

Version History

new 1.2.2 Mar 10, 2026
updated 1.2.2 ← 1.2.1 diff Nov 15, 2025
updated 1.2.1 ← 1.2.0 diff Jul 26, 2025
updated 1.2.0 ← 1.1.0 diff Jun 26, 2025
updated 1.1.0 ← 1.0.0 diff Apr 25, 2024
updated 1.0.0 ← 0.1.0 diff Nov 6, 2023
new 0.1.0 Jan 9, 2022