save_csv <- function(x) {
path <- tempfile(fileext = ".csv")
readr::write_csv(x, path)
path
}
expect_snapshot_data <- function(x, name) {
testthat::skip_on_ci()
testthat::skip_on_os("windows")
path <- save_csv(x)
testthat::expect_snapshot_file(path, paste0(name, ".csv"))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.