# 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",
"invalid_id")
# running function to get the available products
## does not return anything as credentials wrong
result = espa_products(input_ids = product_ids)
# }
Run the code above in your browser using DataLab