Learn R Programming

f1dataR (version 2.0.1)

get_jolpica_content: Get Jolpica Content

Description

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

Note in 2024 this replaced the deprecated Ergast API. Much of the historical data is duplicated in Jolpica

Usage

get_jolpica_content(url)

Value

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

Arguments

url

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