Other packages > Find by keyword >

httptest  

A Test Environment for HTTP Requests
View on CRAN: Click here


Download and install httptest package within the R console
Install from CRAN:
install.packages("httptest")

Install from Github:
library("remotes")
install_github("cran/httptest")

Install by package version:
library("remotes")
install_version("httptest", "4.2.3")



Attach the package and use:
library("httptest")
Maintained by
Neal Richardson
[Scholar Profile | Author Map]
All associated links for this package
First Published: 2016-12-31
Latest Update: 2024-01-23
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.
How to cite:
Neal Richardson (2016). httptest: A Test Environment for HTTP Requests. R package version 4.2.3, https://cran.r-project.org/web/packages/httptest. Accessed 07 Mar. 2026.
Previous versions and publish date:
1.0.0 (2016-12-31 22:01), 1.1.0 (2017-02-03 19:08), 1.2.0 (2017-03-22 07:13), 1.3.0 (2017-04-13 23:23), 2.0.0 (2017-06-05 09:29), 2.1.0 (2017-07-31 10:19), 2.1.2 (2017-08-05 01:06), 2.3.2 (2017-10-20 06:24), 2.3.4 (2017-11-14 05:23), 3.0.0 (2018-01-16 19:35), 3.1.0 (2018-06-19 21:00), 3.2.0 (2018-11-09 07:20), 3.2.2 (2018-12-07 06:30), 3.3.0 (2020-01-28 22:40), 4.0.0 (2021-02-01 07:10), 4.1.0 (2021-09-22 23:20), 4.2.0 (2023-05-29 02:00), 4.2.1 (2023-06-12 14:40), 4.2.2 (2024-01-23 20:40)
Other packages that cited httptest R package
View httptest citation profile
Other R packages that httptest depends, imports, suggests or enhances
Complete documentation for httptest
Downloads during the last 30 days

Today's Hot Picks in Authors and Packages

ReviewR  
A Light-Weight, Portable Tool for Reviewing Individual Patient Records
A portable Shiny tool to explore patient-level electronic health record data and perform chart revi ...
Download / Learn more Package Citations See dependency  
SAMtool  
Stock Assessment Methods Toolkit
Simulation tools for closed-loop simulation are provided for the 'MSEtool' operating model to inform ...
Download / Learn more Package Citations See dependency  
nextGenShinyApps  
Craft Exceptional 'R Shiny' Applications and Dashboards with Novel Responsive Tools
Nove responsive tools for designing and developing 'Shiny' dashboards and applications. The scripts ...
Download / Learn more Package Citations See dependency  
lmSubsets  
Exact Variable-Subset Selection in Linear Regression
Exact and approximation algorithms for variable-subset selection in ordinary linear regression mode ...
Download / Learn more Package Citations See dependency  
portalr  
Create Useful Summaries of the Portal Data
Download and generate summaries for the rodent, plant, ant, and weather data from the Portal Projec ...
Download / Learn more Package Citations See dependency  
testDriveR  
Teaching Data for Statistics and Data Science
Provides data sets for teaching statistics and data science courses. It includes a sample of data f ...
Download / Learn more Package Citations See dependency  

26,264

R Packages

223,360

Dependencies

70,376

Author Associations

26,265

Publication Badges

© Copyright since 2022. All right reserved, rpkg.net.  Based in Cambridge, Massachusetts, USA