vcr | R Documentation |
vcr records test suite 'HTTP' requests and replay them during future runs.
Check out the http testing book
for a lot more documentation on vcr
, webmockr
, and crul
A Ruby gem of the same name (VCR
, https://github.com/vcr/vcr) was
created many years ago and is the original. Ports in many languages
have been done. Check out that GitHub repo for all the details on
how the canonical version works.
The use_cassette function is most likely what you'll want to use. It sets the cassette you want to record to, inserts the cassette, and then ejects the cassette, recording the interactions to the cassette.
Instead, you can use insert_cassette, but then you have to make sure to use eject_cassette.
vcr_configure is the function to use to set R session wide settings. See it's manual file for help.
See recording for help on record modes.
See request-matching for help on the many request matching options.
Scott Chamberlain
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.