read_response_rds | R Documentation |
Load in a query object saved to an RDS file.
read_response_rds(filename)
filename |
(character) The name of the file to load in. |
A query object
library(ArctosR)
if (interactive()) {
# Request to download all available data
query <- get_records(
scientific_name = "Canis lupus", guid_prefix = "MSB:Mamm",
columns = list("guid", "parts", "partdetail")
)
# Save the data in a .RDS file
save_response_rds(query, "wolves.RDS")
# Load the data from the .RDS just saved
read_response_rds("wolves.RDS")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.