set_email: Store USAID email

View source: R/load_secrets.R

set_emailR Documentation

Store USAID email

Description

'set_email' stores your USAID email using the 'keyring' package. This will only need to run once.

Usage

set_email(usaid_email)

Arguments

usaid_email

full USAID email address

Details

The 'keyring' package utilized 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.

After 'set_email' has been run once, an analyst can set 'load_secrets' at the beginning of a script, storing their email and DATIM username under Options for the current session.

This function also stores the email locally in your .Rprofile, allowing to be used automatically as the default for 'googledrive::drive_auth()' and 'googlesheets4::gs4_auth()'

Value

stores USAID email using keyring and .Rprofile

See Also

Other authentication: datim_pwd(), datim_user(), get_account(), get_key(), get_keys(), get_s3key(), get_services(), load_secrets(), pano_pwd(), pano_user(), pdap_access(), pdap_bucket(), pdap_secret(), set_account(), set_datim(), set_key(), set_pano(), set_s3keys()

Examples

## Not run: 
set_email("rshah@usaid.gov") 
## End(Not run)


USAID-OHA-SI/glamr documentation built on July 6, 2024, 6:39 a.m.