is_recording: Determine if vcr is recording/replaying

View source: R/use_cassette.R

is_recordingR Documentation

Determine if vcr is recording/replaying

Description

local_cassette() and use_cassette() set the VCR_IS_RECORDING and VCR_IS_REPLAYING environment variables to make it easy to determine vcr state without taking a dependency on vcr. These functions show you how to use them; we expect you to copy and paste these functions into your own package

Usage

is_recording()

is_replaying()

Value

TRUE or FALSE.


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