#' Disconnects a given database connection.
#'
#' @param con A database connection (an object of class MySQLConnection).
#' @return A logical vector of length 1, indicating success or failure.
#' @export
close_connection <- function(con) {
return(DBI::dbDisconnect(con))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.