connect_rs <- function() {
rs <- odbc::dbConnect(RPostgres::Postgres(),
"user" = Sys.getenv("RSUSER"),
"password" = Sys.getenv("RSPASSWORD"),
"dbname" = Sys.getenv("RSDB"),
"port"=Sys.getenv("RSPORT"),
"host" = Sys.getenv("RSHOST"))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.