Skip to content

Commit

Permalink
Style & Document code
Browse files Browse the repository at this point in the history
  • Loading branch information
SCasanova committed Oct 2, 2023
1 parent 32ebade commit e64b016
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
8 changes: 5 additions & 3 deletions R/plot_fastest.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@ plot_fastest <- function(season = get_current_season(), round = 1, session = "R"
cli::cli_abort("f1dataR::plot_fastest() requires ggplot2 package installation")
}
if (lifecycle::is_present(race)) {
lifecycle::deprecate_stop("1.4.0",
"plot_fastest(race)",
"plot_fastest(round)")
lifecycle::deprecate_stop(
"1.4.0",
"plot_fastest(race)",
"plot_fastest(round)"
)
round <- race
}

Expand Down
8 changes: 4 additions & 4 deletions tests/testthat/test-load_driver_telemetry.R
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ test_that("driver telemetry", {
"`get_driver_telemetry\\(\\)` was deprecated in f1dataR 1.4.0 and is now defunct.*"
)

expect_error(
get_driver_telemetry(season = 2022, race = "Brazil", session = "S", driver = "HAM", fastest_only = TRUE),
"`get_driver_telemetry\\(\\)` was deprecated in f1dataR 1.4.0 and is now defunct.*"
)
expect_error(
get_driver_telemetry(season = 2022, race = "Brazil", session = "S", driver = "HAM", fastest_only = TRUE),
"`get_driver_telemetry\\(\\)` was deprecated in f1dataR 1.4.0 and is now defunct.*"
)
})

0 comments on commit e64b016

Please sign in to comment.