read_response_rds: Read query records previously saved as an RDS file

View source: R/frontend.R

read_response_rdsR Documentation

Read query records previously saved as an RDS file

Description

Load in a query object saved to an RDS file.

Usage

read_response_rds(filename)

Arguments

filename

(character) The name of the file to load in.

Value

A query object

Examples

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")

  
}


ArctosR documentation built on Sept. 16, 2025, 1:10 a.m.