cms_get_username {CopernicusMarine} | R Documentation |
Set or get Copernicus account details
Description
Set or get username and password throughout an R session. This can be used to obscure your account details in an R script and store them as either an R option or system environment variable.
Usage
cms_get_username()
cms_get_password()
cms_set_username(username, method = c("option", "sysenv"))
cms_set_password(password, method = c("option", "sysenv"))
Arguments
username |
Your Copernicus Marine username |
method |
Either |
password |
Your Copernicus Marine password |
Value
Returns your account details for the get
variant or nothing in case
of the set
variant.
Author(s)
Pepijn de Vries
Examples
if (interactive()) {
## Returns your account details only if they have been set for your session
cms_get_username()
cms_get_password()
}
[Package CopernicusMarine version 0.2.6 Index]