intchron_request: Request records from IntChron

View source: R/intchron_api.R

intchron_requestR Documentation

Request records from IntChron

Description

Gets the requested records from IntChron in JSON format and parses them to a named list.

Usage

intchron_request(url, strict = FALSE)

Arguments

url

Vector of addresses to IntChron records. See intchron_url().

strict

If TRUE, will treat non-success HTTP status codes as fatal errors. If FALSE (the default), will attempt to recover from them. See details.

Details

This function is intended to make batch requests to IntChron, so by default it tries to recover from HTTP errors wherever possible. Requests for records that don't exist or which produce a server error return NA with a warning. To disable this behaviour and stop execution when HTTP errors occur, set strict = TRUE.

Value

A list of parsed responses.

See Also

Other functions for interacting with the IntChron API: intchron_crawl(), intchron_extract(), intchron_tabulate(), intchron_url()

Examples

intchron_request(intchron_url("record", "oxa", "Jordan", "Dhuweila"))

joeroe/rintchron documentation built on July 30, 2023, 11:18 p.m.