View source: R/connect_redshift.R
connect_redshift | R Documentation |
Function to establish an Amazon Redshift database connection.
connect_redshift(
dbname = Sys.getenv("REDSHIFT_DATABASE"),
host = Sys.getenv("REDSHIFT_HOST"),
port = Sys.getenv("REDSHIFT_PORT"),
user = Sys.getenv("REDSHIFT_CREDENTIAL_USERNAME"),
password = Sys.getenv("REDSHIFT_CREDENTIAL_PASSWORD")
)
dbname |
database name |
host |
databse host |
port |
database host |
user |
database username |
password |
database password |
Connects to Redshift using the recommendation from this guide. Importantly, it uses RPostgres, as opposed to RJDBC.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.