Nothing
#' @inherit nflreadr::load_player_stats
#' @inheritDotParams nflreadr::load_player_stats
#' @param ... Arguments passed on to nflreadr::load_player_stats
#' @seealso The function [calculate_player_stats()] and the corresponding examples
#' on [the nflfastR website](https://www.nflfastr.com/articles/nflfastR.html#example-11-replicating-official-stats)
#' @examples
#' \donttest{
#' try({# to avoid CRAN test problems
#' stats <- load_player_stats()
#' dplyr::glimpse(stats)
#' })
#' }
#' @export
load_player_stats <- function(...){
# if the dots are empty, we now have the same behavior like nflreadr which
# differs from the previous versions where it was "load all seasons"
if (rlang::is_empty(list(...))){
cli::cli_warn(
c("We have changed the behavior of {.var load_player_stats()} as of nflfastR 4.3.0.",
"Calling it without an argument will return the current season only instead of all available seasons.",
"Please try {.var load_player_stats(seasons = TRUE)} to get all seasons."
),
.frequency = "regularly", .frequency_id = "player_stats_warning"
)
}
# if dots are not empty, use them in nflreadr
nflreadr::load_player_stats(...)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.