Learn R Programming

ArctosR (version 0.1.3)

save_response_rds: Write query records as an RDS file

Description

Save the query object as an RDS file, which stores the entire state of the query and can be loaded at a later time.

Usage

save_response_rds(query, filename)

Value

Nothing.

Arguments

query

The query object to be saved.

filename

(character) Name of the file to be saved.

Examples

Run this code
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")


  # \dontshow{
  unlink("wolves.RDS")
  # }
}

Run the code above in your browser using DataLab