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.



ropenscilabs/vcr documentation built on Feb. 5, 2024, 5:58 p.m.