Description Usage Arguments Details Author(s) See Also Examples
This function allows you to access the PostgreSQL AACT database in the cloud using R without needing to install PostgreSQL on your local machine.
1 | aact_connect(user, password)
|
user |
A character vector containing username of database account |
password |
A character vector containing password of database account |
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.
Howard Baek <howardba@uw.edu>
1 2 3 4 | ## Not run:
con <- aact_connect(config$user, config$password)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.