store LISS Data Archive credentials in the system keyring
Source:R/liss_credentials.R
liss_store_credentials.Rdsaves username and password to the operating system's credential store
(macOS Keychain, Windows Credential Store, or Linux Secret Service) so
that liss_login() can retrieve them automatically.
Arguments
- username
character or numeric. your LISS Data Archive username (typically a 5-digit number).
- password
character. if
NULL(the default), prompts interactively viakeyring::key_set(). supplying the password directly is discouraged outside of non-interactive environments because the value may be recorded in.Rhistory.
Examples
if (FALSE) { # \dontrun{
# interactive (recommended) — prompts for password securely
liss_store_credentials(username = 12345)
# non-interactive (CI / automated environments only)
liss_store_credentials(username = 12345, password = Sys.getenv("LISS_PASSWORD"))
} # }