httptest2: Test Helpers for 'httr2'

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.

Version: 1.0.0
Imports: digest, httr2, jsonlite, rlang, stats, testthat, utils
Suggests: curl, knitr, pkgload, rmarkdown, spelling, webfakes, xml2
Published: 2023-11-07
Author: Neal Richardson ORCID iD [aut, cre], Jonathan Keane [ctb], Maƫlle Salmon ORCID iD [ctb]
Maintainer: Neal Richardson <neal.p.richardson at gmail.com>
BugReports: https://github.com/nealrichardson/httptest2/issues
License: MIT + file LICENSE
URL: https://enpiar.com/httptest2/, https://github.com/nealrichardson/httptest2
NeedsCompilation: no
Language: en-US
Materials: README NEWS
CRAN checks: httptest2 results

Documentation:

Reference manual: httptest2.pdf
Vignettes: Frequently Asked Questions
httptest: A Test Environment for HTTP Requests in R
Redacting and Modifying Recorded Requests
Writing Vignettes with APIs

Downloads:

Package source: httptest2_1.0.0.tar.gz
Windows binaries: r-prerel: httptest2_1.0.0.zip, r-release: httptest2_1.0.0.zip, r-oldrel: httptest2_1.0.0.zip
macOS binaries: r-prerel (arm64): httptest2_1.0.0.tgz, r-release (arm64): httptest2_1.0.0.tgz, r-oldrel (arm64): httptest2_1.0.0.tgz, r-prerel (x86_64): httptest2_1.0.0.tgz, r-release (x86_64): httptest2_1.0.0.tgz
Old sources: httptest2 archive

Reverse dependencies:

Reverse suggests: allcontributors, bskyr, comtradr, congress, f1dataR, feltr, gptzeror, happign, hexFinder, osmdata, planscorer, restatis, riem, Rigma, rirods, rosv

Linking:

Please use the canonical form https://CRAN.R-project.org/package=httptest2 to link to this page.