From e64b01664e05a4cffb97ed8ca3c6944df33f967f Mon Sep 17 00:00:00 2001 From: SCasanova Date: Mon, 2 Oct 2023 18:24:49 +0000 Subject: [PATCH] Style & Document code --- R/plot_fastest.R | 8 +++++--- tests/testthat/test-load_driver_telemetry.R | 8 ++++---- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/R/plot_fastest.R b/R/plot_fastest.R index 3fc7c6e8..ad815b54 100644 --- a/R/plot_fastest.R +++ b/R/plot_fastest.R @@ -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 } diff --git a/tests/testthat/test-load_driver_telemetry.R b/tests/testthat/test-load_driver_telemetry.R index 71168ecf..30afc7cc 100644 --- a/tests/testthat/test-load_driver_telemetry.R +++ b/tests/testthat/test-load_driver_telemetry.R @@ -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.*" + ) })