cms_login {CopernicusMarine}R Documentation

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", "")
)

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.

Details

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

Value

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

Author(s)

Pepijn de Vries

Examples

## Not run: 
## 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()

## End(Not run)

[Package CopernicusMarine version 0.2.3 Index]