ecmwfr (version 1.2.2)

wf_set_key: Set secret ECMWF token

Description

Saves the token to your local keychain under a service called "ecmwfr".

Usage

wf_set_key(user, key, service)

Arguments

user

user (email address) used to sign up for the ECMWF data service

key

token provided by ECMWF

service

service associated with credentials ("webapi" or "cds")

Value

It invisibly returns the user.

See Also

wf_get_key

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
# set key
wf_set_key(user = "test@mail.com", key = "123")

# get key
wf_get_key(user = "test@mail.com")

# leave user and key empty to open a browser window to the service's website
# and type the key interactively
wf_get_key()

# }

Run the code above in your browser using DataCamp Workspace