Package: httptest Type: Package Title: A Test Environment for HTTP Requests Description: Testing and documenting code that communicates with remote servers can be painful. Dealing with authentication, server state, and other complications can make testing seem too costly to bother with. But it doesn't need to be that hard. This package enables one to test all of the logic on the R sides of the API in your package without requiring access to the remote service. Importantly, it provides three contexts that mock the network connection in different ways, as well as testing functions to assert that HTTP requests were---or were not---made. It also allows one to safely record real API responses to use as test fixtures. The ability to save responses and load them offline also enables one to write vignettes and other dynamic documents that can be distributed without access to a live server. Version: 4.2.3 Authors@R: c( person("Neal", "Richardson", role=c("aut", "cre"), email="neal.p.richardson@gmail.com", comment=c(ORCID="0009-0002-7992-3520")), person("Jonathan", "Keane", role="ctb", email="jkeane@gmail.com"), person("Maëlle", "Salmon", role="ctb", email="maelle.salmon@yahoo.se", comment=c(ORCID="0000-0002-2815-0399")) ) URL: https://enpiar.com/r/httptest/, https://github.com/nealrichardson/httptest BugReports: https://github.com/nealrichardson/httptest/issues License: MIT + file LICENSE Depends: R (>= 3.5.0), testthat Imports: curl, digest, httr, jsonlite, stats, utils Suggests: knitr, pkgload, rmarkdown, spelling, xml2 Language: en-US RoxygenNote: 7.3.3 Roxygen: list(markdown = TRUE) Encoding: UTF-8 VignetteBuilder: knitr Config/testthat/edition: 3 Config/Needs/coverage: covr Config/pak/sysreqs: cmake make libuv1-dev libssl-dev Repository: https://nealrichardson.r-universe.dev Date/Publication: 2025-11-16 18:16:31 UTC RemoteUrl: https://github.com/nealrichardson/httptest RemoteRef: HEAD RemoteSha: 97b186987c97f811b8c22fa91744f1b60c3c41f0 NeedsCompilation: no Packaged: 2026-06-14 09:08:36 UTC; root Author: Neal Richardson [aut, cre] (ORCID: ), Jonathan Keane [ctb], Maëlle Salmon [ctb] (ORCID: ) Maintainer: Neal Richardson