Learn R Programming

CopernicusMarine (version 0.2.3)

cms_login: Contact Copernicus Marine login page

Description

[Stable] Contact Copernicus Marine login page and check if login is successful.

Usage

cms_login(
  username = getOption("CopernicusMarine_uid", ""),
  password = getOption("CopernicusMarine_pwd", "")
)

Value

Returns a logical value indicating if the login is successful. The response from the login page is returned as an attribute named response.

Arguments

username

Your Copernicus marine user name. Can be provided as options(CopernicusMarine_uid = "my_user_name"), or as argument here.

password

Your Copernicus marine password. Can be provided as options(CopernicusMarine_pwd = "my_password"), or as argument here.

Author

Pepijn de Vries

Details

This function will return a logical value indicating if the login is successful. It can be used to test your account details.

Examples

Run this code
if (FALSE) {
## This will return FALSE if you have not set your account details with 'options'.
## If you have specified your account details and there are no other problems,
## it will return TRUE.
copernicus_login()
}

Run the code above in your browser using DataLab