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]
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.2, https://cran.r-project.org/web/packages/httptest
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
Downloads during the last 30 days
Get rewarded with contribution points by helping add
Reviews / comments / questions /suggestions ↴↴↴

Today's Hot Picks in Authors and Packages

d4storagehub4R  
Interface to 'D4Science' 'StorageHub' API
Provides an interface to 'D4Science' 'StorageHub' API (). Allows to get ...
Download / Learn more Package Citations See dependency  
ALSCPC  
Accelerated line search algorithm for simultaneous orthogonal transformation of several positive definite symmetric matrices to nearly diagonal form
Using of the accelerated line search algorithm for simultaneously diagonalize a set of symmetric po ...
Download / Learn more Package Citations See dependency  
rcc  
Parametric Bootstrapping to Control Rank Conditional Coverage
Functions to implement the parametric and non-parametric bootstrap confidence interval methods desc ...
Download / Learn more Package Citations See dependency  
qmap  
Statistical Transformations for Post-Processing Climate Model Output
Empirical adjustment of the distribution of variables originating from (regional) climate model simu ...
Download / Learn more Package Citations See dependency  
embed  
Extra Recipes for Encoding Predictors
Predictors can be converted to one or more numeric representations using a variety of methods. Effe ...
Download / Learn more Package Citations See dependency  
nimbleSCR  
Spatial Capture-Recapture (SCR) Methods Using 'nimble'
Provides utility functions, distributions, and fitting methods for Bayesian Spatial Capture-Recaptur ...
Download / Learn more Package Citations See dependency  

22,431

R Packages

191,269

Dependencies

56,139

Author Associations

22,432

Publication Badges

© Copyright 2022 - present. All right reserved, rpkg.net. Contact Us / Suggestions / Concerns