aact_connect: Establish a connection to AACT database

Description Usage Arguments Details Author(s) See Also Examples

View source: R/aact_connect.R

Description

This function allows you to access the PostgreSQL AACT database in the cloud using R without needing to install PostgreSQL on your local machine.

Usage

1
aact_connect(user, password)

Arguments

user

A character vector containing username of database account

password

A character vector containing password of database account

Details

To get started, please create a database account at this link:
https://aact.ctti-clinicaltrials.org/users/sign_up.

To securely save credentials, create a config yaml file: yaml::write_yaml(data.frame(user = "USERNAME", password = "PASSWORD"), "config"). Then, load the config file and save it to an object: config <- yaml::yaml.load_file("config"). Now, you can safely access your database credentials with config$user and config$password.

Alternatively, you can directly enter your username and password as arguments.

Author(s)

Howard Baek <howardba@uw.edu>

See Also

Examples

1
2
3
4
## Not run: 
con <- aact_connect(config$user, config$password)

## End(Not run)

howardbaek/aactr documentation built on Dec. 20, 2021, 4:48 p.m.