Package: vcr 1.7.0.91
vcr: Record 'HTTP' Calls to Disk
Record test suite 'HTTP' requests and replays them during future runs. A port of the Ruby gem of the same name (<https://github.com/vcr/vcr/>). Works by hooking into the 'webmockr' R package for matching 'HTTP' requests by various rules ('HTTP' method, 'URL', query parameters, headers, body, etc.), and then caching real 'HTTP' responses on disk in 'cassettes'. Subsequent 'HTTP' requests matching any previous requests in the same 'cassette' use a cached 'HTTP' response.
Authors:
vcr_1.7.0.91.tar.gz
vcr_1.7.0.91.zip(r-4.6)vcr_1.7.0.91.zip(r-4.5)vcr_1.7.0.91.zip(r-4.4)
vcr_1.7.0.91.tgz(r-4.5-any)vcr_1.7.0.91.tgz(r-4.4-any)
vcr_1.7.0.91.tar.gz(r-4.6-any)vcr_1.7.0.91.tar.gz(r-4.5-any)
vcr_1.7.0.91.tgz(r-4.4-emscripten)
vcr.pdf |vcr.html✨
vcr/json (API)
NEWS
# Install 'vcr' in R: |
install.packages('vcr', repos = c('https://packages.ropensci.org', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/ropensci/vcr/issues
Pkgdown site:https://docs.ropensci.org
httphttpsapiweb-servicescurlmockmockinghttp-mockingtestingtesting-toolstddunit-testingvcr
Last updated 2 days agofrom:6da7bcd7cd (on main). Checks:3 OK, 7 ERROR. Indexed: yes.
Target | Result | Total time |
---|---|---|
source / vignettes | OK | 191 |
pkgdown docs | OK | 294 |
linux-devel-x86_64 | ERROR | 141 |
linux-release-x86_64 | ERROR | 154 |
macos-release-arm64 | ERROR | 102 |
macos-oldrel-arm64 | ERROR | 102 |
windows-devel | ERROR | 119 |
windows-release | ERROR | 106 |
windows-oldrel | ERROR | 92 |
wasm-release | OK | 102 |
Exports:Cassettecassette_pathcassettescheck_cassette_namescurrent_cassettecurrent_cassette_recordingcurrent_cassette_replayingeject_cassetteinsert_cassetteinsert_example_cassettelocal_cassettelocal_vcr_configurelocal_vcr_configure_logRequestHandlerCrulRequestHandlerHttrRequestHandlerHttr2setup_knitrskip_if_vcr_offturn_offturn_onturned_offturned_onuse_cassetteuse_vcrvcr_config_defaultsvcr_configurationvcr_configurevcr_configure_logvcr_configure_resetvcr_last_requestvcr_last_responsevcr_test_path
Dependencies:clicrayoncrulcurldiffobjfauxpasgluehttpcodejsonlitelifecyclemagrittrmimeR6Rcpprlangrprojroottriebeardurltoolswaldowebmockrwhiskerwithryaml
Debugging your tests that use vcr
Rendered fromdebugging.Rmd
usingknitr::rmarkdown
on May 29 2025.Last update: 2025-05-12
Started: 2020-11-25
cassette
Rendered fromknitr-test.Rmd
usingknitr::rmarkdown
on May 29 2025.Last update: 2025-05-13
Started: 2025-05-12
Design of vcr
Rendered fromdesign.Rmd
usingknitr::rmarkdown
on May 29 2025.Last update: 2025-05-05
Started: 2021-05-04
Getting started with vcr
Rendered fromvcr.Rmd
usingknitr::rmarkdown
on May 29 2025.Last update: 2025-05-16
Started: 2019-06-13
Protecting secrets
Rendered fromsecrets.Rmd
usingknitr::rmarkdown
on May 29 2025.Last update: 2025-05-13
Started: 2025-05-01
Readme and manuals
Help Manual
Help page | Topics |
---|---|
List cassettes, get current cassette, etc. | cassettes cassette_path current_cassette current_cassette_recording current_cassette_replaying |
Use cassettes in examples | insert_example_cassette |
Turn vcr on and off | lightswitch skip_if_vcr_off turned_off turned_on turn_off turn_on |
Use vcr in vignettes | setup_knitr |
Use a cassette to record HTTP requests | local_cassette use_cassette |
Global Configuration Options | local_vcr_configure vcr_configuration vcr_configure vcr_configure_reset vcr_config_defaults |
Configure vcr logging | local_vcr_configure_log vcr_configure_log |
Retrieve last vcr request/response | vcr_last_request vcr_last_response |
Locate file in tests directory | vcr_test_path |