R/print_cassette.R

Defines functions print.cassette

#' @export
print.cassette <- function(x, ...){
  cat(paste0("<cassette> ", x$name), sep = "\n")
  cat(paste0("  Recorded at: ", if (!is.null(x$recorded_at))
    x$recorded_at), sep = "\n")
  cat(paste0("  Recorded with: ", if (!is.null(x$recorded_at))
    x$recorded_with), sep = "\n")
}

Try the vcr package in your browser

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

vcr documentation built on July 9, 2023, 5:30 p.m.