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.2")



Attach the package and use:
library("httptest")
Maintained by
Neal Richardson
[Scholar Profile | Author Map]
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.2, https://cran.r-project.org/web/packages/httptest. Accessed 05 May. 2025.
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)
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
04/0504/0604/0704/0804/0904/1004/1104/1204/1304/1404/1504/1604/1704/1804/1904/2004/2104/2204/2304/2404/2504/2604/2704/2804/2904/3005/0105/03Downloads for httptest20406080100120140160TrendBars

Today's Hot Picks in Authors and Packages

quickcode  
Quick and Essential 'R' Tricks for Better Scripts
The NOT functions, 'R' tricks and a compilation of some simple quick plus often used 'R' codes to im ...
Download / Learn more Package Citations See dependency  
cape  
Combined Analysis of Pleiotropy and Epistasis for Diversity Outbred Mice
Combined Analysis of Pleiotropy and Epistasis infers predictive networks between genetic variants a ...
Download / Learn more Package Citations See dependency  
rsvd  
Randomized Singular Value Decomposition
Low-rank matrix decompositions are fundamental tools and widely used for data analysis, dimension r ...
Download / Learn more Package Citations See dependency  
pdqr  
Work with Custom Distribution Functions
Create, transform, and summarize custom random variables with distribution functions (analogues of ...
Download / Learn more Package Citations See dependency  
lifecourse  
Quantification of Lifecourse Fluidity
Provides in built datasets and three functions. These functions are mobility_index, nonStanTest and ...
Download / Learn more Package Citations See dependency  
BINCOR  
Estimate the Correlation Between Two Irregular Time Series
Estimate the correlation between two irregular time series that are not necessarily sampled on ident ...
Download / Learn more Package Citations See dependency  

24,187

R Packages

207,311

Dependencies

65,312

Author Associations

24,143

Publication Badges

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