`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"))
stores Google, DATIM, PEFPFAR Panorama, s3, and PDAP credentials in session
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.
Other authentication:
datim_pwd()
,
datim_user()
,
get_account()
,
get_key()
,
get_keys()
,
get_s3key()
,
get_services()
,
pano_pwd()
,
pano_user()
,
pdap_access()
,
pdap_bucket()
,
pdap_secret()
,
set_account()
,
set_datim()
,
set_email()
,
set_key()
,
set_pano()
,
set_s3keys()
if (FALSE) { # \dontrun{
load_secrets()
ou_table <- datim_outable(datim_user(), datim_pwd()) } # }