check_for_status | R Documentation |
Checks if a response failed as part of a query.
check_for_status(query)
query |
A query object to check the return status of |
TRUE if the query succeeded, FALSE otherwise
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")
)
check_for_status(query)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.