Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version bump and submission #238

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
6 changes: 3 additions & 3 deletions CRAN-SUBMISSION
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Version: 1.4.0
Date: 2023-10-03 00:53:59 UTC
SHA: 32ebade39cf41cdbdf714bd9d5bb51ae41cc48b3
Version: 1.4.1
Date: 2023-11-13 16:23:43 UTC
SHA: d44cee970d708da8dbdefa9f7e79694301f91a1c
1 change: 1 addition & 0 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -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) %>%
Expand Down
50 changes: 38 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,20 +60,20 @@ season and last race. Lap data is limited to 1996-present.

``` r
load_laps()
#> # A tibble: 1,157 × 6
#> # A tibble: 1,106 × 6
#> driver_id position time lap time_sec season
#> <chr> <chr> <chr> <int> <dbl> <dbl>
#> 1 max_verstappen 1 1:32.190 1 92.2 2023
#> 2 leclerc 2 1:33.119 1 93.1 2023
#> 3 piastri 3 1:33.882 1 93.9 2023
#> 4 norris 4 1:34.309 1 94.3 2023
#> 5 russell 5 1:34.776 1 94.8 2023
#> 6 tsunoda 6 1:35.435 1 95.4 2023
#> 7 alonso 7 1:36.044 1 96.0 2023
#> 8 gasly 8 1:36.636 1 96.6 2023
#> 9 hamilton 9 1:37.227 1 97.2 2023
#> 10 perez 10 1:37.745 1 97.7 2023
#> # ℹ 1,147 more rows
#> 1 max_verstappen 1 1:59.857 1 120. 2023
#> 2 norris 2 2:01.881 1 122. 2023
#> 3 hamilton 3 2:04.866 1 125. 2023
#> 4 alonso 4 2:07.301 1 127. 2023
#> 5 stroll 5 2:08.727 1 129. 2023
#> 6 russell 6 2:11.238 1 131. 2023
#> 7 perez 7 2:13.140 1 133. 2023
#> 8 sainz 8 2:14.431 1 134. 2023
#> 9 ocon 9 2:15.909 1 136. 2023
#> 10 piastri 10 2:17.108 1 137. 2023
#> # ℹ 1,096 more rows
```

or
Expand Down Expand Up @@ -109,6 +109,20 @@ this will improve to only a couple of seconds

``` r
load_driver_telemetry(season = 2022, round = 4, driver = "PER")
#> Warning: fastf1 version < 3.1 was deprecated in f1dataR 1.4.1.
#> ℹ Please use fastf1 version >= 3.1 instead.
#> ℹ Hard deprecation will occur between 2023 and 2024 F1 seasons
#> ℹ The deprecated feature was likely used in the f1dataR package.
#> Please report the issue at <https://github.com/scasanova/f1dataR/issues>.
#> This warning is displayed once every 8 hours.
#> Call `lifecycle::last_lifecycle_warnings()` to see where this warning was
#> generated.
#> The Python package fastf1 was updated to v3 recently. Please update the version
#> on your system by running: `setup_fastf1(newenv = TRUE)` Future versions of
#> f1dataR may not support fastf1<3.0.0.
#> The Python package fastf1 was updated to v3 recently. Please update the version
#> on your system by running: `setup_fastf1(newenv = TRUE)` Future versions of
#> f1dataR may not support fastf1<3.0.0.
#> # A tibble: 592 × 19
#> date session_time time rpm speed n_gear throttle brake
#> <dttm> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <lgl>
Expand All @@ -128,6 +142,12 @@ load_driver_telemetry(season = 2022, round = 4, driver = "PER")
#> # driver_ahead <chr>, distance_to_driver_ahead <dbl>, …

load_driver_telemetry(season = 2018, round = 7, "Q", "HAM", laps = "fastest")
#> The Python package fastf1 was updated to v3 recently. Please update the version
#> on your system by running: `setup_fastf1(newenv = TRUE)` Future versions of
#> f1dataR may not support fastf1<3.0.0.
#> The Python package fastf1 was updated to v3 recently. Please update the version
#> on your system by running: `setup_fastf1(newenv = TRUE)` Future versions of
#> f1dataR may not support fastf1<3.0.0.
#> # A tibble: 534 × 19
#> date session_time time rpm speed n_gear throttle brake
#> <dttm> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <lgl>
Expand Down Expand Up @@ -156,6 +176,12 @@ tyres, weather (optional), and more for every lap of the GP and driver.

``` r
load_session_laps(season = 2023, round = 4, add_weather = TRUE)
#> The Python package fastf1 was updated to v3 recently. Please update the version
#> on your system by running: `setup_fastf1(newenv = TRUE)` Future versions of
#> f1dataR may not support fastf1<3.0.0.
#> The Python package fastf1 was updated to v3 recently. Please update the version
#> on your system by running: `setup_fastf1(newenv = TRUE)` Future versions of
#> f1dataR may not support fastf1<3.0.0.
#> # A tibble: 962 × 39
#> time driver driver_number lap_time lap_number stint pit_out_time pit_in_time
#> <dbl> <chr> <chr> <dbl> <dbl> <dbl> <dbl> <dbl>
Expand Down
Loading