load_secrets: Load credentials

View source: R/load_secrets.R

load_secretsR Documentation

Load credentials

Description

'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.

Usage

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

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.

Value

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

See Also

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()

Examples

## Not run: 
load_secrets()
ou_table <- datim_outable(datim_user(), datim_pwd()) 
## End(Not run)

USAID-OHA-SI/glamr documentation built on Oct. 1, 2024, 2:18 p.m.