`load_secrets` should be set at the beginning of a script to store your email and DATIM user name under Options for the current session. This allows analysts to more easily share their scripts without having to manually update or remove use names.

load_secrets(service = c("email", "datim", "pano", "s3", "pdap"))

Arguments

service

account, either "email", "datim", "pano", "s3", or "pdap"; by default, all are loaded if they are available

Value

stores Google, DATIM, PEFPFAR Panorama, s3, and PDAP credentials in session

Details

To initially store your credentials, you will first need to run `set_email()`, `set_datim()`, `set_pano()`, and/or `set_key` (for s3)

`load_secrets` utilizes `keyring` package to access the OS credentials store. Storing in a centralized, secure location allows analysts to other analysts code without having to manually change user names/email address to access DATIM or Google Drive.

Examples

if (FALSE) { # \dontrun{
load_secrets()
ou_table <- datim_outable(datim_user(), datim_pwd()) } # }