#' close_connections
#' Close any hung DBI connections
#' @export
#'
close_connections <- function() {
current_conns <- DBI::dbListConnections(RMySQL::MySQL())
for (conn in current_conns) {
DBI::dbDisconnect(conn)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.