Why and how to edit your vcr cassettes?

knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)
library(vcr)

Conclusion

In this vignette we saw why and how to edit your vcr cassettes. We also presented approaches that use webmockr instead of vcr for mocking API responses. We mentioned editing cassettes by hand but you could also write a script using the yaml or jsonlite package to edit your YAML/JSON cassettes programmatically.



Try the vcr package in your browser

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

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