Skip to contents

Establish a connection to the camalien database. This function is a wrapper around DBI::dbConnect. The function will create a connection using RPostgres::Postgres as a driver. For the function to work you need to have the following environment variables set in your .REnviron file:

  • CAMALIEN_USER

  • CAMALIEN_PASSWORD

Usage

ca_connect()

Value

PqDriver

Details

To modify or create an .REnviron file we suggest you use usethis::edit_r_environ. Calling this function from RStudio will open the file for you to edit. Simply insert the variables, save and restart R.