Skip to content

Commit 3dfa293

Browse files
authored
Merge pull request #192 from SCasanova/devtest
Advance lifecycle anf CRAN comments
2 parents e5ffb2b + e64b016 commit 3dfa293

File tree

67 files changed

+566
-120
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+566
-120
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: f1dataR
22
Title: Access Formula 1 Data
3-
Version: 1.3.0.9000
3+
Version: 1.4.0
44
Authors@R: c(
55
person("Santiago", "Casanova", , "santiago.casanova@yahoo.com", role = c("aut", "cre", "cph")),
66
person("Philip", "Bulsink", , "bulsinkp@gmail.com", role = "aut",

NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# f1dataR (development version)
1+
# f1dataR 1.4.0
22

33
* Added a function `correct_track_ratio()` to ensure plotted tracks have proper x & y ratios (#89, #179)
44
* Updated `plot_fastest()` to use `correct_track_ratio()`

R/load_driver_telemetry.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ load_driver_telemetry <- function(season = get_current_season(), round = 1, sess
4141
fastest_only = lifecycle::deprecated()) {
4242
# Lifecycles
4343
if (lifecycle::is_present(race)) {
44-
lifecycle::deprecate_warn("1.0.0", "load_driver_telemetry(race)", "load_driver_telemetry(round)")
44+
lifecycle::deprecate_stop("1.4.0", "load_driver_telemetry(race)", "load_driver_telemetry(round)")
4545
round <- race
4646
}
4747
if (lifecycle::is_present(fastest_only)) {
48-
lifecycle::deprecate_warn("1.1.0", "load_driver_telemetry(fastest_only)", "load_driver_telemetry(laps)")
48+
lifecycle::deprecate_stop("1.4.0", "load_driver_telemetry(fastest_only)", "load_driver_telemetry(laps)")
4949
if (fastest_only) {
5050
laps <- "fastest"
5151
} else {
@@ -130,8 +130,8 @@ get_driver_telemetry <-
130130
log_level = "WARNING",
131131
fastest_only = lifecycle::deprecated(),
132132
race = lifecycle::deprecated()) {
133-
lifecycle::deprecate_warn(
134-
"1.0.0",
133+
lifecycle::deprecate_stop(
134+
"1.4.0",
135135
"get_driver_telemetry()",
136136
"load_driver_telemetry()"
137137
)

R/load_laps.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#' during lap, time (in clock form), lap number, time (in seconds), and season.
1414
load_laps <- function(season = get_current_season(), round = "last", race = lifecycle::deprecated()) {
1515
if (lifecycle::is_present(race)) {
16-
lifecycle::deprecate_warn("1.0.0", "load_laps(race)", "load_laps(round)")
16+
lifecycle::deprecate_stop("1.4.0", "load_laps(race)", "load_laps(round)")
1717
round <- race
1818
}
1919
if (season != "current" && (season < 1996 || season > get_current_season())) {

R/load_pitstops.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#' and stop duration
1515
load_pitstops <- function(season = get_current_season(), round = "last", race = lifecycle::deprecated()) {
1616
if (lifecycle::is_present(race)) {
17-
lifecycle::deprecate_warn("1.0.0", "load_pitstops(race)", "load_pitstops(round)")
17+
lifecycle::deprecate_stop("1.4.0", "load_pitstops(race)", "load_pitstops(round)")
1818
round <- race
1919
}
2020
if (season != "current" && (season < 2011 || season > get_current_season())) {

R/load_race_session.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
load_race_session <- function(obj_name = "session", season = get_current_season(), round = 1, session = "R",
3737
log_level = "WARNING", race = lifecycle::deprecated()) {
3838
if (lifecycle::is_present(race)) {
39-
lifecycle::deprecate_warn("1.0.0", "load_race_session(race)", "load_race_session(round)")
39+
lifecycle::deprecate_stop("1.4.0", "load_race_session(race)", "load_race_session(round)")
4040
round <- race
4141
}
4242
if (season != "current" && (season < 2018 || season > get_current_season())) {

R/load_session_laps.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
load_session_laps <- function(season = get_current_season(), round = 1, session = "R", log_level = "WARNING",
2929
add_weather = FALSE, race = lifecycle::deprecated()) {
3030
if (lifecycle::is_present(race)) {
31-
lifecycle::deprecate_warn("1.0.0", "load_session_laps(race)", "load_session_laps(round)")
31+
lifecycle::deprecate_stop("1.4.0", "load_session_laps(race)", "load_session_laps(round)")
3232
round <- race
3333
}
3434

R/plot_fastest.R

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ plot_fastest <- function(season = get_current_season(), round = 1, session = "R"
2929
cli::cli_abort("f1dataR::plot_fastest() requires ggplot2 package installation")
3030
}
3131
if (lifecycle::is_present(race)) {
32-
lifecycle::deprecate_warn("1.0.0", "plot_fastest(race)", "plot_fastest(round)")
32+
lifecycle::deprecate_stop(
33+
"1.4.0",
34+
"plot_fastest(race)",
35+
"plot_fastest(round)"
36+
)
3337
round <- race
3438
}
3539

cran-comments.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
## Resubmission
22
This is a resubmission. In this version we have:
33

4-
* Fixed an undiscovered bug in previous sumbission
4+
* Added freedom to the usesr's python enviroment
55

6-
* Eliminated any use of `getwd()` within the package (functions, tests and vignettes)
6+
* Advanced lifecycle on deprecations
77

8-
* Changed the caching process to give control to user (use `tempdir()` as default)
9-
10-
* Added missing value parameters
11-
12-
* Added API references to DESCRIPTION
8+
* Added a helper function for plot outputs
139

1410
## R CMD check results
1511

docs/404.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/LICENSE-text.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/LICENSE.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Loading
Loading
Loading
Loading
Loading
Loading
Loading

docs/articles/ergast-data-analysis.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/articles/index.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
10.3 KB
Loading
90.3 KB
Loading
25.3 KB
Loading
50.9 KB
Loading
143 KB
Loading
86.9 KB
Loading
144 KB
Loading

docs/articles/introduction.html

Lines changed: 24 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/articles/setup_fastf1.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/authors.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)