#' get local postgres connection
#'
#' @param user username for my local db
#' @param pw password for my local db
#' @export
get_swamp <- function(user, pw){
DBI::dbConnect(RPostgreSQL::PostgreSQL(),
host = "localhost",
dbname = "swamp",
password = pw,
user = user,
port = 5432
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.