espa_user: Validate Espa Credentials

Description Usage Arguments Value Examples

Description

To check espa credentials and if espa-api is responding. Suggest to use espa_creds function to store your credentials before running this function

Usage

1
2
espa_user(host = "https://espa.cr.usgs.gov/api/v1/", username = NULL,
  password = NULL)

Arguments

host

the api call host. Default set to espa v1 web api

username

default NULL, which fetches the username from the global environment. If defined otherwise, will run the api with the provided details

password

default NULL, which fetches the password from the global environment. If defined otherwise, will run the api with the provided details

Value

logical. TRUE if user is active, FALSE if credentials are wrong or API is unresponsive

Examples

1
2
3
4
## inputting the credentials
espa_creds("your_espaname", "secret_password")
## checking if the user is valid
espa_user() # returns FALSE

rLandsat documentation built on July 7, 2019, 1:03 a.m.