Have you installed the latest development version of the package(s) in question?
[X] I have installed the latest development version of the package.
If this is a data issue, have you tried clearing your nflverse cache?
I have cleared my nflverse cache and the issue persists.
What version of the package do you have?
4.6.1
Describe the bug
I receive the following warning when running the calculate_player_stats_kicking() function:
#> Warning: Returning more (or less) than 1 row per `summarise()` group was deprecated in
#> dplyr 1.1.0.
#> ℹ Please use `reframe()` instead.
#> ℹ When switching from `summarise()` to `reframe()`, remember that `reframe()`
#> always returns an ungrouped data frame and adjust accordingly.
#> ℹ The deprecated feature was likely used in the nflfastR package.
Reprex
nfl_pbp <- progressr::with_progress(
nflreadr::load_pbp(seasons = TRUE))
nfl_actualStats_kicking_weekly <- nflfastR::calculate_player_stats_kicking(
nfl_pbp,
weekly = TRUE)
#> Warning: Returning more (or less) than 1 row per `summarise()` group was deprecated in
#> dplyr 1.1.0.
#> ℹ Please use `reframe()` instead.
#> ℹ When switching from `summarise()` to `reframe()`, remember that `reframe()`
#> always returns an ungrouped data frame and adjust accordingly.
#> ℹ The deprecated feature was likely used in the nflfastR package.
#> Please report the issue at <https://github.com/nflverse/nflfastR/issues>.
#> This warning is displayed once every 8 hours.
#> Call `lifecycle::last_lifecycle_warnings()` to see where this warning was
#> generated.
sessionInfo()
#> R version 4.3.1 (2023-06-16 ucrt)
#> Platform: x86_64-w64-mingw32/x64 (64-bit)
#> Running under: Windows 11 x64 (build 22631)
#>
#> Matrix products: default
#>
#>
#> locale:
#> [1] LC_COLLATE=English_United States.utf8
#> [2] LC_CTYPE=English_United States.utf8
#> [3] LC_MONETARY=English_United States.utf8
#> [4] LC_NUMERIC=C
#> [5] LC_TIME=English_United States.utf8
#>
#> time zone: America/Chicago
#> tzcode source: internal
#>
#> attached base packages:
#> [1] stats graphics grDevices utils datasets methods base
#>
#> loaded via a namespace (and not attached):
#> [1] tidyr_1.3.1 utf8_1.2.4 future_1.34.0 generics_0.1.3
#> [5] fastrmodels_1.0.2 stringi_1.8.4 lattice_0.22-6 listenv_0.9.1
#> [9] digest_0.6.37 magrittr_2.0.3 evaluate_0.24.0 grid_4.3.1
#> [13] timechange_0.3.0 fastmap_1.2.0 xgboost_1.7.8.1 jsonlite_1.8.8
#> [17] Matrix_1.6-5 mgcv_1.9-1 purrr_1.0.2 fansi_1.0.6
#> [21] codetools_0.2-20 cli_3.6.3 rlang_1.1.4 parallelly_1.38.0
#> [25] nflreadr_1.4.1 splines_4.3.1 reprex_2.1.1 withr_3.0.1
#> [29] cachem_1.1.0 yaml_2.3.10 tools_4.3.1 parallel_4.3.1
#> [33] memoise_2.0.1 dplyr_1.1.4 globals_0.16.3 nflfastR_4.6.1
#> [37] curl_5.2.2 vctrs_0.6.5 R6_2.5.1 lifecycle_1.0.4
#> [41] lubridate_1.9.3 stringr_1.5.1 snakecase_0.11.1 fs_1.6.4
#> [45] furrr_0.3.1 janitor_2.2.0 pkgconfig_2.0.3 progressr_0.14.0
#> [49] pillar_1.9.0 data.table_1.16.0 glue_1.7.0 xfun_0.47
#> [53] tibble_3.2.1 tidyselect_1.2.1 rstudioapi_0.16.0 knitr_1.48
#> [57] nlme_3.1-166 htmltools_0.5.8.1 rmarkdown_2.28 compiler_4.3.1
Is there an existing issue for this?
Have you installed the latest development version of the package(s) in question?
If this is a data issue, have you tried clearing your nflverse cache?
I have cleared my nflverse cache and the issue persists.
What version of the package do you have?
4.6.1
Describe the bug
I receive the following warning when running the
calculate_player_stats_kicking()
function:Reprex
Created on 2024-09-04 with reprex v2.1.1
Expected Behavior
The expected behavior, as indicated, would be to use
reframe()
instead ofsummarise()
to remove the warning.nflverse_sitrep
Screenshots
No response
Additional context
No response