local_conn <- function() {
conn <- DBI::dbConnect(RSQLite::SQLite(), ":memory:")
withr::defer_parent(DBI::dbDisconnect(conn))
conn
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.