eject_cassette: Eject a cassette

Description Usage Arguments Value See Also Examples

View source: R/eject_cassette.R

Description

Eject a cassette

Usage

1
2
3
4
5
eject_cassette(
  cassette = NULL,
  options = list(),
  skip_no_unused_interactions_assertion = NULL
)

Arguments

cassette

(character) a single cassette names to eject; see name parameter definition in insert_cassette() for cassette name rules

options

(list) a list of options to apply to the eject process

skip_no_unused_interactions_assertion

(logical) If TRUE, this will skip the "no unused HTTP interactions" assertion enabled by the allow_unused_http_interactions = FALSE cassette option. This is intended for use when your test has had an error, but your test framework has already handled it - IGNORED FOR NOW

Value

The ejected cassette if there was one

See Also

use_cassette(), insert_cassette()

Examples

1
2
3
4
5
6
7
8
9
vcr_configure(dir = tempdir())
insert_cassette("hello")
(x <- current_cassette())

# by default does current cassette
x <- eject_cassette()
x
# can also select by cassette name
# eject_cassette(cassette = "hello")

vcr documentation built on June 1, 2021, 1:06 a.m.