From 63ab86ddf6495d0542d04ae4bf8a81b2aa4845a9 Mon Sep 17 00:00:00 2001 From: Kiernan Nicholls Date: Sat, 4 May 2024 21:47:18 -0400 Subject: [PATCH] 2.3.0 accepted to CRAN --- CRAN-SUBMISSION | 3 --- DESCRIPTION | 2 +- NEWS.md | 2 ++ README.Rmd | 1 - README.md | 28 +++++----------------------- 5 files changed, 8 insertions(+), 28 deletions(-) delete mode 100644 CRAN-SUBMISSION diff --git a/CRAN-SUBMISSION b/CRAN-SUBMISSION deleted file mode 100644 index a19f415..0000000 --- a/CRAN-SUBMISSION +++ /dev/null @@ -1,3 +0,0 @@ -Version: 2.3.0 -Date: 2024-05-03 02:04:10 UTC -SHA: c8f03836f75f1a41ca9da645e8cbac86eed9f4b9 diff --git a/DESCRIPTION b/DESCRIPTION index f04a59a..309a15e 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: fflr Title: Retrieve ESPN Fantasy Football Data -Version: 2.3.0 +Version: 2.3.0.9000 Authors@R: person("Kiernan", "Nicholls", email = "k5cents@gmail.com", role = c("aut", "cre", "cph"), comment = c(ORCID = "0000-0002-9229-7897")) diff --git a/NEWS.md b/NEWS.md index 661675e..c761dcc 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,5 @@ +# fflr (development version) + # fflr 2.3.0 * Update the package to work with the new API. diff --git a/README.Rmd b/README.Rmd index 80e6864..af82bc8 100644 --- a/README.Rmd +++ b/README.Rmd @@ -117,7 +117,6 @@ contributing, you agree to abide by its terms. [dl_badge]: https://cranlogs.r-pkg.org/badges/grand-total/fflr [api]: https://lm-api-reads.fantasy.espn.com/apis/v3/games/ffl/ [iss]: https://github.com/k5cents/fflr/issues ->>>>>>> 51d8f8313cb57960ba168ad9b476f2d226482453 [cran]: https://cran.r-project.org/package=fflr [gh]: https://github.com/k5cents/fflr [coc]: https://k5cents.github.io/fflr/CODE_OF_CONDUCT.html diff --git a/README.md b/README.md index 67b5c37..edc6824 100644 --- a/README.md +++ b/README.md @@ -17,8 +17,8 @@ status](https://github.com/k5cents/fflr/workflows/R-CMD-check/badge.svg)](https: The fflr package is used to query the [ESPN Fantasy Football -API](https://fantasy.espn.com/apis/v3/games/ffl/). Get data on fantasy -football league members, teams, and individual athletes. +API](https://lm-api-reads.fantasy.espn.com/apis/v3/games/ffl/). Get data +on fantasy football league members, teams, and individual athletes. This package has been tested with a narrow subset of possible league settings. If a function doesn’t work as intended, please file an [issue @@ -46,7 +46,7 @@ remotes::install_github("k5cents/fflr") ``` r library(fflr) packageVersion("fflr") -#> [1] '2.2.3' +#> [1] '2.3.0' ``` Data is only available for public leagues. See [this help @@ -76,7 +76,7 @@ league_info() #> # A tibble: 1 × 6 #> id seasonId name isPublic size finalScoringPeriod #> -#> 1 42654852 2023 FFLR Test League TRUE 4 17 +#> 1 42654852 2024 FFLR Test League TRUE 4 17 league_teams() #> # A tibble: 4 × 6 #> teamId abbrev name logo logoType memberId @@ -92,25 +92,7 @@ The `scoringPeriodId` argument can be used to get data from past weeks. ``` r all_rost <- team_roster(scoringPeriodId = 1) all_rost$CHI[, 5:13][-7] -#> # A tibble: 16 × 8 -#> lineupSlot playerId firstName lastName proTeam position projectedScore actualScore -#> -#> 1 QB 4040715 Jalen Hurts Phi QB 21.3 12.5 -#> 2 RB 3929630 Saquon Barkley NYG RB 16.9 9.3 -#> 3 RB 4239996 Travis Etienne Jr. Jax RB 15.1 21.4 -#> 4 WR 4262921 Justin Jefferson Min WR 20.1 24 -#> 5 WR 4569618 Garrett Wilson NYJ WR 16.4 14.4 -#> 6 TE 15847 Travis Kelce KC TE 0 0 -#> 7 FLEX 4374302 Amon-Ra St. Brown Det WR 16.7 19.1 -#> 8 D/ST -16025 49ers D/ST SF D/ST 7.78 14 -#> 9 K 3055899 Harrison Butker KC K 8.41 8 -#> 10 BE 4429795 Jahmyr Gibbs Det RB 14.0 8 -#> 11 BE 3042519 Aaron Jones GB RB 15.5 26.7 -#> 12 BE 3915511 Joe Burrow Cin QB 19.8 3.18 -#> 13 BE 2976499 Amari Cooper Cle WR 13.6 6.7 -#> 14 BE 4697815 Rachaad White TB RB 13.9 6.9 -#> 15 BE 3054850 Alvin Kamara NO RB 0 0 -#> 16 BE 4038941 Justin Herbert LAC QB 16.9 20.9 +#> NULL ``` There are included objects for NFL teams and players.