#' utility function to make sure connection is closed after usage
with_dbc_connection <- function(connection, code) {
on.exit({
DatabaseConnector::disconnect(connection)
})
eval(substitute(code), envir = connection, enclos = parent.frame())
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.