get_error_response | R Documentation |
Returns the error string returned from Arctos if the last response in a query object returned a status code other than HTTP 200 for debugging purposes.
get_error_response(query)
query |
A query object to return the error string of |
The error string of a failing response object, or "No error" if the query didn't fail
library(ArctosR)
if (interactive()) {
# query with an invalid column name 'paarts'
query <- get_records(
scientific_name = "Canis lupus", guid_prefix = "MSB:Mamm",
columns = list("guid", "paarts", "partdetail")
)
get_error_response(query)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.