| connect | R Documentation | 
Creates connection to DPCG database To be reused in the subsequent class and markdown SQL chunks.
connect(
  hostname = "localhost",
  dbname = "surveys",
  port = "55431",
  user = "johnny_local",
  pwd
)
| hostname | DB hostname or localhost if ssh tunnel is used | 
| dbname | Usually surveys for DPCG | 
| port | 55431 for Postgres-XZ | 
| user | DB user, i.e. nienarto_local | 
| pwd | optional password. Not needed if .pgpass is up to date (and it should be!) | 
DB connection object to be reused in SQL chunks and other calls
## Not run: connect(user="nienarto_local", port=55431)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.