Skip to contents

This function is useful within another function. It check whether a username or password has been provided by the user and, if not, checks if they were stored via `glamr` or prompts user to provide credentials through interactive prompt.

Usage

lazy_secrets(service = c("datim", "pano", "pdap", "s3"), username, password)

Arguments

service

account, either datim", "pano", "pdap", or "s3"

username

account username or s3 access key

password

account password or s3 secret key

Value

returns a list of 2 - username/access and password/secret

Examples

if (FALSE) { # \dontrun{
  accnt <- lazy_secrets("datim", username = username, password = password)
  datim_dimensions(accnt$username, accnt$password)
} # }