cms_get_username | R Documentation |
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.
cms_get_username()
cms_get_password()
cms_set_username(username, method = c("option", "sysenv"))
cms_set_password(password, method = c("option", "sysenv"))
username |
Your Copernicus Marine username |
method |
Either |
password |
Your Copernicus Marine password |
Returns your account details for the get
variant or nothing in case
of the set
variant.
Pepijn de Vries
if (interactive()) {
## Returns your account details only if they have been set for your session
cms_get_username()
cms_get_password()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.