Saves the token to your local keychain under
a service called "ecmwfr".
Usage
wf_set_key(key, user = "ecmwfr")
Value
It invisibly returns the user.
Arguments
key
token provided by ECMWF
user
user (email address) used to sign up for the ECMWF data service,
if only a single user is needed it defaults to ("ecmwfr").
Author
Koen Hufkens
Details
In systems without keychain management set the option
keyring_backend to `file` (i.e. options(keyring_backend = "file"))
in order to write the keychain entry to an encrypted file.
This mostly pertains to headless Linux systems. The keychain files
can be found in ~/.config/r-keyring.
if (FALSE) {
# set keywf_set_key(key = "123")
# get keywf_get_key()
# leave user and key empty to open a browser window to the service's website# and type the key interactivelywf_set_key()
}