load_secrets | R Documentation |
'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"))
service |
account, either "email", "datim", "pano", "s3", or "pdap"; by default, all are loaded if they are available |
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.
stores Google, DATIM, PEFPFAR Panorama, s3, and PDAP credentials in session
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()
## Not run:
load_secrets()
ou_table <- datim_outable(datim_user(), datim_pwd())
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.