Skip to content

Commit

Permalink
Merge pull request #127 from nflverse/cran-1.3.0
Browse files Browse the repository at this point in the history
cran submission - v1.3.0
  • Loading branch information
tanho63 authored Aug 6, 2022
2 parents 285d429 + 9b04aba commit 0b15cc8
Show file tree
Hide file tree
Showing 9 changed files with 86 additions and 84 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -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", , "[email protected]", role = c("aut", "cre", "cph"),
comment = c(ORCID = "0000-0001-8388-5155")),
Expand Down
7 changes: 5 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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!

---

Expand Down
2 changes: 1 addition & 1 deletion R/load_contracts.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#'
#' @return A tibble of active and non-active NFL player contracts.
#'
#' @seealso <https://overthecap.com/contract-history/> for a web version of the data
#' @seealso <https://overthecap.com/contract-history> for a web version of the data
#' @seealso <https://nflreadr.nflverse.com/articles/dictionary_contracts.html> 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: <https://github.com/nflverse/rotc>
Expand Down
82 changes: 38 additions & 44 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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~*
#> <dbl> <chr> <chr> <chr> <chr> <chr> <int> <chr> <chr> <chr> <chr> <dbl> <chr>
#> 1 1 2021~ 2021~ TEN ARI REG 1 <NA> <NA> <NA> <NA> 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 <dbl>,
#> # half_seconds_remaining <dbl>, game_seconds_remaining <dbl>,
#> # game_half <chr>, quarter_end <dbl>, drive <dbl>, sp <dbl>, qtr <dbl>,
#> # down <dbl>, goal_to_go <dbl>, ...
#> ── 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
#> <dbl> <chr> <chr> <chr> <chr> <chr> <int> <chr>
#> 1 1 2021_01_AR… 2021091207 TEN ARI REG 1 <NA>
#> 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 <chr>,
#> # defteam <chr>, side_of_field <chr>, yardline_100 <dbl>, game_date <chr>,
#> # quarter_seconds_remaining <dbl>, half_seconds_remaining <dbl>,
#> # game_seconds_remaining <dbl>, game_half <chr>, quarter_end <dbl>, …

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~*
#> <chr> <chr> <chr> <int> <int> <chr> <int> <int> <dbl> <int> <dbl> <dbl> <dbl>
#> 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 <int>,
#> # sack_fumbles_lost <int>, passing_air_yards <dbl>,
#> # passing_yards_after_catch <dbl>, passing_first_downs <dbl>,
#> # passing_epa <dbl>, passing_2pt_conversions <int>, pacr <dbl>, ...
#> ── 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
#> <chr> <chr> <chr> <int> <int> <chr> <int>
#> 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 <int>,
#> # passing_yards <dbl>, passing_tds <int>, interceptions <dbl>, sacks <dbl>,
#> # sack_yards <dbl>, sack_fumbles <int>, sack_fumbles_lost <int>,
#> # passing_air_yards <dbl>, passing_yards_after_catch <dbl>, …
```

## Data Sources
Expand Down
15 changes: 9 additions & 6 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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
2 changes: 1 addition & 1 deletion man/load_contracts.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

58 changes: 30 additions & 28 deletions revdep/README.md
Original file line number Diff line number Diff line change
@@ -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 |<U+0394> |
|:-------------|:-------|:-------|:--|
|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

2 changes: 1 addition & 1 deletion revdep/cran.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Binary file modified revdep/data.sqlite
Binary file not shown.

0 comments on commit 0b15cc8

Please sign in to comment.