Learn R Programming

f1dataR (version 2.0.1)

get_ergast_content: Get Ergast Content

Description

Gets Ergast content and returns the processed json object if no Ergast errors are found. This will automatically fall back from https:// to http:// if Ergast suffers errors, and will automatically retry up to 5 times by each protocol

[Deprecated]

Note the Ergast Motor Racing Database API will shut down at the end of 2024. This function willbe replaced with a new data-source when one is made available.

Usage

get_ergast_content(url)

Value

the result of jsonlite::fromJSON called on Ergast's return content. Further processing is performed by specific functions

Arguments

url

the Ergast URL tail to get from the API (for example, "{season}/circuits.json?limit=40" is called from load_circuits()).