espa_cancel_order: Cancel Landst espa Orders

Description Usage Arguments Value Examples

Description

This will cancel the order placed earlier through espa_order

Usage

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

Arguments

order_id

vector of order ids to be cancelled

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

vector of order ids which could NOT be cancelled

Examples

1
2
3
4
5
6
7
## Not run: 
# input the credentials, if not defined earlier
espa_creds("your_espaname", "secret_password")
# Cancel orders
## return NULL as credentials not valid
espa_cancel_order(order_id = c("your_order_id1", "your_order_id2"))
## End(Not run)

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