tests/testthat/_snaps/lightswitch.md

can turn off and turn on

Code
  turn_off()
Message
  vcr turned off; see ?turn_on to turn vcr back on

turned_off works iif no cassettes active

Code
  turned_off(5 + 5)
Condition
  Error in `turn_off()`:
  ! You must eject all cassettes before you can turn vcr off.

inserting a cassette errors when vcr turned off and ignore_cassettes=FALSE

Code
  insert_cassette("test")
Condition
  Error in `insert_cassette()`:
  ! vcr is turned off.
  i Use `turn_on()` to turn it back on.
  i Or use `turn_off(ignore_cassettes = TRUE)` to ignore cassettes completely.

lightswitch env var handles varying inputs

Code
  lightswitch_init()
Condition
  Error in `lightswitch_init()`:
  ! env var `VCR_TURN_OFF` must be TRUE or FALSE, not "yes".


Try the vcr package in your browser

Any scripts or data that you put into this service are public.

vcr documentation built on Aug. 8, 2025, 6:45 p.m.