tdClose <- function(x = tdConnection) {
if (class(tdConnection) == "RODBC")
close(x)
if (class(tdConnection) == "JDBCConnection")
dbDisconnect(x)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.