aact_connection {clintrialx} | R Documentation |
Connect to AACT PostgreSQL database
aact_connection(user, password)
user |
Database username |
password |
Database password |
A connection object to the AACT database
# Set environment variables for database credentials in .Renviron and load it
# readRenviron(".Renviron")
# Connect to the database
con <- aact_connection(Sys.getenv('user'), Sys.getenv('password'))