knitr::opts_chunk$set( comment = "#>", collapse = TRUE, warning = FALSE, message = FALSE )
Easier HTTP testing! Record HTTP requests and responses on disk and replay them for the unit tests of your R package, to make them independent from any connection, faster, and more complete. An R port of the Ruby gem vcr
CRAN version:
install.packages("vcr")
Development version:
remotes::install_github("ropensci/vcr")
library("vcr") library("crul")
Check out the HTTP testing book and the vcr vignettes.
See the vignette about internals
You're looking for webmockr, that vcr itself uses.
webmockr
only matches requests based on criteria you choose, but does not cache HTTP interactions to disk as vcr
does.
The canonical vcr
(in Ruby) lists ports in other languages at https://github.com/vcr/vcr
vcr
in R doing citation(package = 'vcr')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.