diff --git a/DESCRIPTION b/DESCRIPTION index fcd5fa37..ed1c0dca 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: nflreadr Title: Download 'nflverse' Data -Version: 1.2.0.20 +Version: 1.3.0 Authors@R: c( person("Tan", "Ho", , "tan@tanho.ca", role = c("aut", "cre", "cph"), comment = c(ORCID = "0000-0001-8388-5155")), diff --git a/NEWS.md b/NEWS.md index 5125a22d..20f4f777 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,9 +1,11 @@ -# nflreadr (development version) +# nflreadr 1.3.0 + +This release introduces several new data functions, some new utilities, and an array of data/function updates. ## New Data! - `load_participation()` returns new play-level information about what players are on the field, how many players are in the box, and what formation the offense is using. Data from NGS starting 2016 and onward -- `load_contracts()` downloads (historical) player contracts from [OverTheCap.com](https://overthecap.com/contract-history/) +- `load_contracts()` downloads (historical) player contracts from [OverTheCap.com](https://overthecap.com/contract-history) - `load_players()` returns player-level information and is the new recommended source (over rosters) for IDs, positions, birthdates etc. - `load_rosters_weekly()` provides week-by-week team rosters dating back to 2002. - `load_officials()` returns game-level information about which officials are assigned to specific games. @@ -38,6 +40,7 @@ - refactored all the loaders to use `load_from_url` as primary - fixed broken example in `load_ff_opportunity()` documentation. #117 +Thank you to [@albtree](https://github.com/albtree), [@john-b-edwards](https://github.com/john-b-edwards), [@mrcaseb](https://github.com/mrcaseb), [@pranavrajaram](https://github.com/pranavrajaram), [@tanho63](https://github.com/tanho63), and [@tpenney89](https://github.com/tpenney89) for their contributions and feedback on this release! --- diff --git a/R/load_contracts.R b/R/load_contracts.R index 9d44e2a3..5e633c64 100644 --- a/R/load_contracts.R +++ b/R/load_contracts.R @@ -14,7 +14,7 @@ #' #' @return A tibble of active and non-active NFL player contracts. #' -#' @seealso for a web version of the data +#' @seealso for a web version of the data #' @seealso for a web version of the dictionary #' @seealso [`dictionary_contracts`] for the data dictionary as bundled within the package #' @seealso Issues with this data should be filed here: diff --git a/README.md b/README.md index cb321e1d..b2c1ce6a 100644 --- a/README.md +++ b/README.md @@ -60,52 +60,46 @@ The main functions of `nflreadr` are prefixed with `load_`. library(nflreadr) load_pbp(2021) -#> -- nflverse play by play ------------------------------------------------------- -#> i Data updated: 2022-03-18 00:40:27 EDT -#> # A tibble: 50,712 x 372 -#> pla~1 gam~2 old~3 hom~4 awa~5 sea~6 week pos~7 pos~8 def~9 sid~* yar~* gam~* -#> -#> 1 1 2021~ 2021~ TEN ARI REG 1 NA 2021~ -#> 2 40 2021~ 2021~ TEN ARI REG 1 TEN home ARI ARI 35 2021~ -#> 3 55 2021~ 2021~ TEN ARI REG 1 TEN home ARI TEN 75 2021~ -#> 4 76 2021~ 2021~ TEN ARI REG 1 TEN home ARI TEN 78 2021~ -#> 5 100 2021~ 2021~ TEN ARI REG 1 TEN home ARI TEN 75 2021~ -#> 6 122 2021~ 2021~ TEN ARI REG 1 TEN home ARI TEN 75 2021~ -#> 7 152 2021~ 2021~ TEN ARI REG 1 ARI away TEN ARI 61 2021~ -#> 8 181 2021~ 2021~ TEN ARI REG 1 ARI away TEN TEN 23 2021~ -#> 9 218 2021~ 2021~ TEN ARI REG 1 ARI away TEN TEN 31 2021~ -#> 10 253 2021~ 2021~ TEN ARI REG 1 ARI away TEN TEN 30 2021~ -#> # ... with 50,702 more rows, abbreviated variable names 1: play_id, 2: game_id, -#> # 3: old_game_id, 4: home_team, 5: away_team, 6: season_type, 7: posteam, -#> # 8: posteam_type, 9: defteam, *: side_of_field, *: yardline_100, -#> # *: game_date, and 359 more variables: quarter_seconds_remaining , -#> # half_seconds_remaining , game_seconds_remaining , -#> # game_half , quarter_end , drive , sp , qtr , -#> # down , goal_to_go , ... +#> ── nflverse play by play ─────────────────────────────────────────────────────── +#> ℹ Data updated: 2022-07-28 18:10:55 EDT +#> # A tibble: 50,712 × 372 +#> play_id game_id old_game_id home_team away_team season_type week posteam +#> +#> 1 1 2021_01_AR… 2021091207 TEN ARI REG 1 +#> 2 40 2021_01_AR… 2021091207 TEN ARI REG 1 TEN +#> 3 55 2021_01_AR… 2021091207 TEN ARI REG 1 TEN +#> 4 76 2021_01_AR… 2021091207 TEN ARI REG 1 TEN +#> 5 100 2021_01_AR… 2021091207 TEN ARI REG 1 TEN +#> 6 122 2021_01_AR… 2021091207 TEN ARI REG 1 TEN +#> 7 152 2021_01_AR… 2021091207 TEN ARI REG 1 ARI +#> 8 181 2021_01_AR… 2021091207 TEN ARI REG 1 ARI +#> 9 218 2021_01_AR… 2021091207 TEN ARI REG 1 ARI +#> 10 253 2021_01_AR… 2021091207 TEN ARI REG 1 ARI +#> # … with 50,702 more rows, and 364 more variables: posteam_type , +#> # defteam , side_of_field , yardline_100 , game_date , +#> # quarter_seconds_remaining , half_seconds_remaining , +#> # game_seconds_remaining , game_half , quarter_end , … load_player_stats(2021) -#> -- nflverse player stats: offense ---------------------------------------------- -#> i Data updated: 2022-03-09 15:34:12 EST -#> # A tibble: 5,698 x 48 -#> pla~1 pla~2 rec~3 sea~4 week sea~5 com~6 att~7 pas~8 pas~9 int~* sacks sac~* -#> -#> 1 00-0~ T.Br~ TB 2021 1 REG 32 50 379 4 2 0 0 -#> 2 00-0~ T.Br~ TB 2021 2 REG 24 36 276 5 0 3 17 -#> 3 00-0~ T.Br~ TB 2021 3 REG 41 55 432 1 0 3 21 -#> 4 00-0~ T.Br~ TB 2021 4 REG 22 43 269 0 0 1 8 -#> 5 00-0~ T.Br~ TB 2021 5 REG 30 41 411 5 0 2 15 -#> 6 00-0~ T.Br~ TB 2021 6 REG 34 42 297 2 1 0 0 -#> 7 00-0~ T.Br~ TB 2021 7 REG 20 36 211 4 0 0 0 -#> 8 00-0~ T.Br~ TB 2021 8 REG 28 40 375 4 2 3 25 -#> 9 00-0~ T.Br~ TB 2021 10 REG 23 34 220 2 2 0 0 -#> 10 00-0~ T.Br~ TB 2021 11 REG 30 46 307 2 1 0 0 -#> # ... with 5,688 more rows, abbreviated variable names 1: player_id, -#> # 2: player_name, 3: recent_team, 4: season, 5: season_type, 6: completions, -#> # 7: attempts, 8: passing_yards, 9: passing_tds, *: interceptions, -#> # *: sack_yards, and 35 more variables: sack_fumbles , -#> # sack_fumbles_lost , passing_air_yards , -#> # passing_yards_after_catch , passing_first_downs , -#> # passing_epa , passing_2pt_conversions , pacr , ... +#> ── nflverse player stats: offense ────────────────────────────────────────────── +#> ℹ Data updated: 2022-07-28 18:18:44 EDT +#> # A tibble: 5,698 × 48 +#> player_id player_name recent_team season week season_type completions +#> +#> 1 00-0019596 T.Brady TB 2021 1 REG 32 +#> 2 00-0019596 T.Brady TB 2021 2 REG 24 +#> 3 00-0019596 T.Brady TB 2021 3 REG 41 +#> 4 00-0019596 T.Brady TB 2021 4 REG 22 +#> 5 00-0019596 T.Brady TB 2021 5 REG 30 +#> 6 00-0019596 T.Brady TB 2021 6 REG 34 +#> 7 00-0019596 T.Brady TB 2021 7 REG 20 +#> 8 00-0019596 T.Brady TB 2021 8 REG 28 +#> 9 00-0019596 T.Brady TB 2021 10 REG 23 +#> 10 00-0019596 T.Brady TB 2021 11 REG 30 +#> # … with 5,688 more rows, and 41 more variables: attempts , +#> # passing_yards , passing_tds , interceptions , sacks , +#> # sack_yards , sack_fumbles , sack_fumbles_lost , +#> # passing_air_yards , passing_yards_after_catch , … ``` ## Data Sources diff --git a/cran-comments.md b/cran-comments.md index dfe3bc8e..25ee05c4 100644 --- a/cran-comments.md +++ b/cran-comments.md @@ -1,10 +1,12 @@ -## SUBMISSION +## RESUBMISSION + +Resubmit to correct URL-redirection issues. ## Test environments -* local windows R installation, R 4.1.0 -* windows (on Github Actions), R 4.1.0 -* macOS (on Github Actions), R 4.1.0 -* ubuntu 20.04 (on GitHub Actions), R 4.1.0 +* local windows R installation, R 4.2.0 +* windows (on GitHub Actions), R 4.2.1 +* macOS (on GitHub Actions), R 4.2.1 +* ubuntu 20.04 (on GitHub Actions), R 4.2.1 * ubuntu 20.04 (on GitHub Actions), R 3.6.0 * ubuntu 20.04 (on GitHub Actions), R devel @@ -14,7 +16,8 @@ ## Reverse dependencies -We checked 6 reverse dependencies (6 from CRAN + 0 from Bioconductor), comparing R CMD check results across CRAN and dev versions of this package. +We checked 7 reverse dependencies (7 from CRAN + 0 from Bioconductor), +comparing R CMD check results across CRAN and dev versions of this package. * We saw 0 new problems * We failed to check 0 packages diff --git a/man/load_contracts.Rd b/man/load_contracts.Rd index fb4a9863..64d965b4 100644 --- a/man/load_contracts.Rd +++ b/man/load_contracts.Rd @@ -25,7 +25,7 @@ try({ # prevents cran errors } \seealso{ -\url{https://overthecap.com/contract-history/} for a web version of the data +\url{https://overthecap.com/contract-history} for a web version of the data \url{https://nflreadr.nflverse.com/articles/dictionary_contracts.html} for a web version of the dictionary diff --git a/revdep/README.md b/revdep/README.md index d99638c0..0fbb568e 100644 --- a/revdep/README.md +++ b/revdep/README.md @@ -1,36 +1,38 @@ # Platform -|field |value | -|:--------|:----------------------------| -|version |R version 4.1.0 (2021-05-18) | -|os |Windows 10 x64 | -|system |x86_64, mingw32 | -|ui |RStudio | -|language |(EN) | -|collate |English_Canada.1252 | -|ctype |English_Canada.1252 | -|tz |America/New_York | -|date |2022-03-16 | +|field |value | +|:--------|:---------------------------------------------------------------------| +|version |R version 4.2.0 (2022-04-22 ucrt) | +|os |Windows 10 x64 (build 19044) | +|system |x86_64, mingw32 | +|ui |RStudio | +|language |(EN) | +|collate |English_Canada.utf8 | +|ctype |English_Canada.utf8 | +|tz |America/New_York | +|date |2022-08-06 | +|rstudio |2022.06.0-daily+477 Spotted Wakerobin (desktop) | +|pandoc |2.18 @ C:/Program Files/RStudio/bin/quarto/bin/tools/ (via rmarkdown) | # Dependencies -|package |old |new | | -|:-------------|:-------|:-------|:--| -|nflreadr |1.1.3 |1.2.0 |* | -|cachem |1.0.6 |1.0.6 | | -|cli |3.2.0 |3.2.0 | | -|curl |4.3.2 |4.3.2 | | -|data.table |1.14.2 |1.14.2 | | -|fastmap |1.1.0 |1.1.0 | | -|glue |1.6.2 |1.6.2 | | -|memoise |2.0.1 |2.0.1 | | -|qs |0.25.3 |0.25.3 | | -|RApiSerialize |0.1.0 |0.1.0 | | -|rappdirs |0.3.3 |0.3.3 | | -|Rcpp |1.0.8.2 |1.0.8.2 | | -|RcppParallel |5.1.5 |5.1.5 | | -|rlang |1.0.2 |1.0.2 | | -|stringfish |0.15.5 |0.15.5 | | +|package |old |new |Δ | +|:-------------|:------|:------|:--| +|nflreadr |1.2.0 |1.3.0 |* | +|cachem |1.0.6 |1.0.6 | | +|cli |3.3.0 |3.3.0 | | +|curl |4.3.2 |4.3.2 | | +|data.table |1.14.2 |1.14.2 | | +|fastmap |1.1.0 |1.1.0 | | +|glue |1.6.2 |1.6.2 | | +|memoise |2.0.1 |2.0.1 | | +|qs |0.25.3 |NA |* | +|RApiSerialize |0.1.0 |NA |* | +|rappdirs |0.3.3 |0.3.3 | | +|Rcpp |1.0.9 |NA |* | +|RcppParallel |5.1.5 |NA |* | +|rlang |1.0.4 |1.0.4 | | +|stringfish |0.15.7 |NA |* | # Revdeps diff --git a/revdep/cran.md b/revdep/cran.md index 38c067b7..cb4fb435 100644 --- a/revdep/cran.md +++ b/revdep/cran.md @@ -1,6 +1,6 @@ ## revdepcheck results -We checked 6 reverse dependencies (0 from CRAN + 6 from Bioconductor), comparing R CMD check results across CRAN and dev versions of this package. +We checked 7 reverse dependencies (0 from CRAN + 7 from Bioconductor), comparing R CMD check results across CRAN and dev versions of this package. * We saw 0 new problems * We failed to check 0 packages diff --git a/revdep/data.sqlite b/revdep/data.sqlite index 63d42760..8a190104 100644 Binary files a/revdep/data.sqlite and b/revdep/data.sqlite differ