knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library(vcr)
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.