# NOT RUN {
# input the credentials, if not defined earlier
espa_creds("your_espaname", "secret_password")
# saving the product ids as a vector
product_ids = c("LC08_L1TP_148047_20180202_20180220_01_T1",
"LC08_L1TP_134040_20180115_20180120_01_T1")
# saving the required products as a vector
prod = c("sr", "sr_ndvi")
# placing the order
## returns NULL as wrong credentials provided
result = espa_order(input_ids = product_ids, product = prod, projection = "lonlat")
orderid = result$order_details$orderid # storing the order id for future reference
# }
Run the code above in your browser using DataLab