1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cassettes.R
\name{cassettes}
\alias{cassettes}
\alias{current_cassette}
\alias{cassette_path}
\title{List cassettes, get current cassette, etc.}
\usage{
cassettes(on_disk = TRUE, verb = FALSE)
current_cassette()
cassette_path()
}
\arguments{
\item{on_disk}{(logical) Check for cassettes on disk + cassettes in session
(\code{TRUE}), or check for only cassettes in session (\code{FALSE}). Default: \code{TRUE}}
\item{verb}{(logical) verbose messages}
}
\description{
List cassettes, get current cassette, etc.
}
\details{
\itemize{
\item \code{cassettes()}: returns cassettes found in your R session, you can toggle
whether we pull from those on disk or not
\item \code{current_cassette()}: returns an empty list when no cassettes are in use,
while it returns the current cassette (a \code{Cassette} object) when one is
in use
\item \code{cassette_path()}: just gives you the current directory path where
cassettes will be stored
}
}
\examples{
vcr_configure(dir = tempdir())
# list all cassettes
cassettes()
cassettes(on_disk = FALSE)
# list the currently active cassette
insert_cassette("stuffthings")
current_cassette()
eject_cassette()
cassettes()
cassettes(on_disk = FALSE)
# list the path to cassettes
cassette_path()
vcr_configure(dir = file.path(tempdir(), "foo"))
cassette_path()
vcr_configure_reset()
}
|