diff --git a/.gitignore b/.gitignore index 9a946a72..0afdc8ef 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,6 @@ fastf1_http_cache.sqlite tests/testthat/tst_* f1dataR.Rproj /Meta/ -/tst_* +/tst_*go Rplots.pdf .DS_Store diff --git a/CRAN-SUBMISSION b/CRAN-SUBMISSION index 4d822f68..6a3085e5 100644 --- a/CRAN-SUBMISSION +++ b/CRAN-SUBMISSION @@ -1,3 +1,3 @@ -Version: 1.4.0 -Date: 2023-10-03 00:53:59 UTC -SHA: 32ebade39cf41cdbdf714bd9d5bb51ae41cc48b3 +Version: 1.5.1 +Date: 2024-03-12 00:43:34 UTC +SHA: e33af12967936bcac9dabd07573cbb6ff9ea05cd diff --git a/DESCRIPTION b/DESCRIPTION index 29fc77ea..c86018b7 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: f1dataR Title: Access Formula 1 Data -Version: 1.5.0.9000 +Version: 1.5.1 Authors@R: c( person("Santiago", "Casanova", , "santiago.casanova@yahoo.com", role = c("aut", "cre", "cph")), person("Philip", "Bulsink", , "bulsinkp@gmail.com", role = "aut", diff --git a/NEWS.md b/NEWS.md index 268b7a9e..9084af8a 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,4 @@ -# f1dataR (development version) +# f1dataR 1.5.1 * Added (very soft) deprecation warning to Ergast functions in advance of the Ergast API being defunct in less than 12 months. * Deprecated support for FastF1 v < 3.1.0. Older FastF1 versions do not support all of the functions in use and may return different values from some data retrieval or calculation functions. Forcing use of up-to-date FastF1 allows for simpler bugfixes and code updates. (#198) diff --git a/R/utils.R b/R/utils.R index 358f3177..85632d15 100644 --- a/R/utils.R +++ b/R/utils.R @@ -32,6 +32,7 @@ get_ergast_content <- function(url) { # Automatically retries request up to 5 times. Back-off provided in httr2 documentation # Automatically retries at http if https fails after retries. + ergast_raw <- httr2::request("https://ergast.com/api/f1") %>% httr2::req_url_path_append(url) %>% httr2::req_retry(max_tries = 5) %>% diff --git a/cran-comments.md b/cran-comments.md index 1e265d14..816964ef 100644 --- a/cran-comments.md +++ b/cran-comments.md @@ -3,5 +3,7 @@ This is a major version update. This update includes deprecation of support for older versions of the Python package wrapped in our code. This is done as the new Python version is required for increasing numbers of the functions in use. +Reduced image quality to comply with 5MB tarball limit + ## R CMD check results diff --git a/man/figures/Thumbs.db b/man/figures/Thumbs.db new file mode 100644 index 00000000..e68d4c5f Binary files /dev/null and b/man/figures/Thumbs.db differ diff --git a/plotting-turn-info-basic_track_plot-1.png b/plotting-turn-info-basic_track_plot-1.png new file mode 100644 index 00000000..5d420207 Binary files /dev/null and b/plotting-turn-info-basic_track_plot-1.png differ diff --git a/plotting-turn-info-relabelled_gear_plot-1.png b/plotting-turn-info-relabelled_gear_plot-1.png new file mode 100644 index 00000000..472bb07b Binary files /dev/null and b/plotting-turn-info-relabelled_gear_plot-1.png differ diff --git a/plotting-turn-info-telem_plot-1.png b/plotting-turn-info-telem_plot-1.png new file mode 100644 index 00000000..6b022289 Binary files /dev/null and b/plotting-turn-info-telem_plot-1.png differ diff --git a/plotting-turn-info-telem_with_corners-1.png b/plotting-turn-info-telem_with_corners-1.png new file mode 100644 index 00000000..1fd78514 Binary files /dev/null and b/plotting-turn-info-telem_with_corners-1.png differ diff --git a/vignettes/Thumbs.db b/vignettes/Thumbs.db new file mode 100644 index 00000000..a815388b Binary files /dev/null and b/vignettes/Thumbs.db differ