File: print_cassette.R

package info (click to toggle)
r-cran-vcr 0.6.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,360 kB
  • sloc: cpp: 15; sh: 13; makefile: 2
file content (8 lines) | stat: -rw-r--r-- 288 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
#' @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")
}