Package: vcr 2.1.1.91

Scott Chamberlain

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 recording real 'HTTP' requests/responses on disk in 'cassettes', and then replaying matching responses on subsequent requests.

Authors:Scott Chamberlain [aut, cre], Aaron Wolen [aut], Maëlle Salmon [aut], Daniel Possenriede [aut], Hadley Wickham [aut], rOpenSci [fnd]

vcr_2.1.1.91.tar.gz
vcr_2.1.1.91.zip(r-4.6)vcr_2.1.1.91.zip(r-4.5)vcr_2.1.1.91.zip(r-4.4)
vcr_2.1.1.91.tgz(r-4.6-any)vcr_2.1.1.91.tgz(r-4.5-any)
vcr_2.1.1.91.tar.gz(r-4.6-any)vcr_2.1.1.91.tar.gz(r-4.5-any)
vcr_2.1.1.91.tgz(r-4.5-emscripten)
vcr.pdf |vcr.html
vcr/json (API)
NEWS

# Install 'vcr' in R:
install.packages('vcr', repos = c('https://ropensci.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/ropensci/vcr/issues

Pkgdown/docs site:https://docs.ropensci.org

On CRAN:

Conda:

httphttpsapiweb-servicescurlmockmockinghttp-mockingtestingtesting-toolstddunit-testingvcr

10.73 score 95 stars 157 scripts 5.1k downloads 31 exports 12 dependencies

Last updated from:ce8d1ce5a7 (on main). Checks:10 OK. Indexed: yes.

TargetResultTotal timeArtifact
linux-devel-x86_64OK141
pkgdown docsOK195
source / vignettesOK188
linux-release-x86_64OK140
macos-devel-arm64OK90
macos-release-arm64OK104
windows-develOK159
windows-releaseOK188
windows-oldrelOK156
wasm-releaseOK129

Exports:Cassettecassette_pathcassettescheck_cassette_namescurrent_cassettecurrent_cassette_recordingcurrent_cassette_replayingeject_cassetteinsert_cassetteinsert_example_cassetteis_recordingis_replayinglocal_cassettelocal_vcr_configurelocal_vcr_configure_logsetup_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:clicrayoncurldiffobjgluejsonlitelifecycleR6rlangrprojrootwaldoyaml

cassette

Rendered fromknitr-test.Rmdusingknitr::rmarkdownon Jan 20 2026.

Last update: 2025-07-04
Started: 2025-05-12

Debugging vcr failures

Rendered fromdebugging.Rmdusingknitr::rmarkdownon Jan 20 2026.

Last update: 2025-06-19
Started: 2020-11-25

Design of vcr

Rendered fromdesign.Rmdusingknitr::rmarkdownon Jan 20 2026.

Last update: 2025-07-21
Started: 2021-05-04

Getting started with vcr

Rendered fromvcr.Rmdusingknitr::rmarkdownon Jan 20 2026.

Last update: 2025-07-16
Started: 2019-06-13

Protecting secrets

Rendered fromsecrets.Rmdusingknitr::rmarkdownon Jan 20 2026.

Last update: 2025-05-13
Started: 2025-05-01

Readme and manuals

Help Manual

Help pageTopics
List cassettes, get current cassette, etc.cassettes cassette_path current_cassette current_cassette_recording current_cassette_replaying
Use cassettes in examplesinsert_example_cassette
Determine if vcr is recording/replayingis_recording is_replaying
Turn vcr on and offlightswitch skip_if_vcr_off turned_off turned_on turn_off turn_on
Use vcr in vignettessetup_knitr
Use a cassette to record HTTP requestslocal_cassette use_cassette
Global Configuration Optionslocal_vcr_configure vcr_configuration vcr_configure vcr_configure_reset vcr_config_defaults
Configure vcr logginglocal_vcr_configure_log vcr_configure_log
Retrieve last vcr request/responsevcr_last_request vcr_last_response
Locate file in tests directoryvcr_test_path