library(sqldf)
query <- function(sql) {
.connection <- dbConnect(MySQL(),
user = 'public',
password = 'public',
dbname = 'scarsdale',
host = 'tlevine.the-nsa.org')
sqldf(sql, connection = .connection)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.