rs_set_key: Set NASA Earth Data password

View source: R/rs_set_key.R

rs_set_keyR Documentation

Set NASA Earth Data password

Description

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

Usage

rs_set_key(user, password)

Arguments

user

user used to sign up for the AppEEARS data service (this is not the email address, but the true user name!)

password

used to sign up for AppEEARS

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.

Value

It invisibly returns the user.

Author(s)

Koen Hufkens

See Also

rs_get_key

Examples


## Not run: 
# set key
rs_set_key(user = "test", password = "123")

# get key
rs_get_key(user = "test")

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


## End(Not run)

appeears documentation built on Sept. 15, 2023, 5:06 p.m.