Skip to content

Instantly share code, notes, and snippets.

@tomer-ben-david
Last active September 10, 2018 12:01
Show Gist options
  • Save tomer-ben-david/982f9c9867d2747f422cb2d4642021a7 to your computer and use it in GitHub Desktop.
Save tomer-ben-david/982f9c9867d2747f422cb2d4642021a7 to your computer and use it in GitHub Desktop.
redshift rstudio
brew install libpq
```R
install.packages('RPostgres')
library(RPostgres)
pconn_r <- dbConnect(RPostgres::Postgres(),
host = host,
port = port,
user = user,
password = password,
dbname = dbname,
sslmode='require')
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment