Skip to content

Commit 4e0944d

Browse files
authored
Merge pull request #153 from dynastyprocess/dev
v1.2.1
2 parents 62f94aa + aa8e7ae commit 4e0944d

42 files changed

Lines changed: 628 additions & 673 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Type: Package
22
Package: ffscrapr
33
Title: API Client for Fantasy Football League Platforms
4-
Version: 1.2.0
4+
Version: 1.2.1
55
Authors@R:
66
person(given = "Tan",
77
family = "Ho",

NEWS.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# ffscrapr 1.2.1
2+
3+
### Minor patches
4+
- Caching vignette outputs in tests/testthat to making vignette-rebuilding less internet reliant
5+
- Changing the league_id output of `sleeper_userleagues` to be a character column (because of cran no-longdouble support)
6+
17
# ffscrapr 1.2.0
28

39
The main goal of ffscrapr 1.2.0 is to add a full set of methods for Fleaflicker. This release also adds improved caching options, including writing to your filesystem for persistent caching (see the vignette!), and one hotfix for sleeper_getendpoint.
@@ -8,7 +14,6 @@ The main goal of ffscrapr 1.2.0 is to add a full set of methods for Fleaflicker.
814
### Other tweaks to existing platforms/methods
915

1016
- Small copyedits to existing vignettes.
11-
- Caching vignette rebuild.
1217
- Added filesystem cache capabilities and a vignette to detailing how to use it.
1318

1419
### Fleaflicker notes

R/flea_players.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#' fleaflicker players library
1+
#' Fleaflicker players library
22
#'
33
#' A cached table of Fleaflicker NFL players. Will store in memory for each session!
44
#' (via memoise in zzz.R)

R/flea_userleagues.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ ff_userleagues.flea_conn <- function(conn = NULL, user_email = NULL, season = NU
2525
fleaflicker_userleagues(user_email, season)
2626
}
2727

28-
#' flea - Get User Leagues
28+
#' Fleaflicker - Get User Leagues
2929
#'
3030
#' This function returns the leagues that a specific user is in.
3131
#' This variant can be used without first creating a connection object.

R/sleeper_api.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#### SLEEPER GET API ####
22

3-
#' GET any SLEEPER endpoint
3+
#' GET any Sleeper endpoint
44
#'
55
#' The endpoint names and HTTP parameters (i.e. argument names) are CASE SENSITIVE and should be passed in exactly as displayed on the Sleeper API reference page.
66
#'

README.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ Helps access various Fantasy Football APIs (currently MFL, Sleeper, Fleaflicker,
3131

3232
### Installation
3333

34-
Version 1.2.0 is now on CRAN 🎉 and can be installed with:
34+
Version 1.2.1 is now on CRAN 🎉 and can be installed with:
3535

3636
```{r eval = FALSE}
3737
install.packages("ffscrapr")
3838
# or from GitHub release with the remotes package # install.packages("remotes")
39-
remotes::install_github("dynastyprocess/ffscrapr",ref = "v1.2.0")
39+
remotes::install_github("dynastyprocess/ffscrapr",ref = "v1.2.1")
4040
```
4141

4242
Install the development version from GitHub with:

README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ sources.
2626

2727
### Installation
2828

29-
Version 1.2.0 is now on CRAN 🎉 and can be installed with:
29+
Version 1.2.1 is now on CRAN 🎉 and can be installed with:
3030

3131
``` r
3232
install.packages("ffscrapr")
3333
# or from GitHub release with the remotes package # install.packages("remotes")
34-
remotes::install_github("dynastyprocess/ffscrapr",ref = "v1.2.0")
34+
remotes::install_github("dynastyprocess/ffscrapr",ref = "v1.2.1")
3535
```
3636

3737
Install the development version from GitHub with:
@@ -63,7 +63,7 @@ ff_league(ssb) %>% str()
6363
#> $ qb_type : chr "1QB"
6464
#> $ idp : logi FALSE
6565
#> $ scoring_flags : chr "0.5_ppr, TEPrem, PP1D"
66-
#> $ best_ball : logi TRUE
66+
#> $ best_ball : logi FALSE
6767
#> $ salary_cap : logi FALSE
6868
#> $ player_copies : num 1
6969
#> $ years_active : chr "2018-2020"
@@ -73,28 +73,28 @@ ff_league(ssb) %>% str()
7373

7474
# Get rosters
7575
ff_rosters(ssb)
76-
#> # A tibble: 439 x 11
76+
#> # A tibble: 438 x 11
7777
#> franchise_id franchise_name player_id player_name pos team age
7878
#> <chr> <chr> <chr> <chr> <chr> <chr> <dbl>
79-
#> 1 0001 Team Pikachu 13189 Engram, Ev~ TE NYG 26.2
79+
#> 1 0001 Team Pikachu 13189 Engram, Ev~ TE NYG 26.3
8080
#> 2 0001 Team Pikachu 11680 Landry, Ja~ WR CLE 28
81-
#> 3 0001 Team Pikachu 14085 Pollard, T~ RB DAL 23.6
82-
#> 4 0001 Team Pikachu 13645 Smith, Tre~ WR NOS 24.9
83-
#> 5 0001 Team Pikachu 12110 Brate, Cam~ TE TBB 29.4
84-
#> # ... with 434 more rows, and 4 more variables: roster_status <chr>,
81+
#> 3 0001 Team Pikachu 13645 Smith, Tre~ WR NOS 24.9
82+
#> 4 0001 Team Pikachu 12110 Brate, Cam~ TE TBB 29.5
83+
#> 5 0001 Team Pikachu 13168 Reynolds, ~ WR LAR 25.8
84+
#> # ... with 433 more rows, and 4 more variables: roster_status <chr>,
8585
#> # drafted <chr>, draft_year <chr>, draft_round <chr>
8686

8787
# Get transactions
8888
ff_transactions(ssb)
89-
#> # A tibble: 891 x 12
89+
#> # A tibble: 1,026 x 12
9090
#> timestamp type type_desc franchise_id franchise_name player_id
9191
#> <dttm> <chr> <chr> <chr> <chr> <chr>
92-
#> 1 2020-11-22 19:29:36 FREE~ added 0009 Team Link 12155
93-
#> 2 2020-11-22 19:29:36 FREE~ dropped 0009 Team Link 13794
94-
#> 3 2020-11-22 14:49:11 FREE~ added 0014 Team Luigi 14062
95-
#> 4 2020-11-21 22:24:25 IR deactiva~ 0014 Team Luigi 13136
96-
#> 5 2020-11-21 22:24:02 FREE~ added 0014 Team Luigi 13136
97-
#> # ... with 886 more rows, and 6 more variables: player_name <chr>, pos <chr>,
92+
#> 1 2020-12-15 19:56:03 FREE~ dropped 0013 Team Ness 14331
93+
#> 2 2020-12-15 19:56:03 IR activated 0013 Team Ness 13620
94+
#> 3 2020-12-11 18:40:22 IR activated 0012 Team Mewtwo 13963
95+
#> 4 2020-12-11 18:40:22 IR activated 0012 Team Mewtwo 14871
96+
#> 5 2020-12-11 18:39:43 FREE~ dropped 0012 Team Mewtwo 14793
97+
#> # ... with 1,021 more rows, and 6 more variables: player_name <chr>, pos <chr>,
9898
#> # team <chr>, bbid_spent <dbl>, trade_partner <chr>, comments <chr>
9999
```
100100

cran-comments.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
# RESUBMISSION 2
2-
3-
- Have changed examples to refer to character league_ids instead of integer ones, so that it works on noLD systems.
4-
5-
# RESUBMISSION 1
6-
7-
- Have much reduced test cache files and package tarball should now build to about 3.2 MB.
8-
91
## Test environments
102
* local (Windows) R installation, R 4.0.2
113
* ubuntu 16.04 (on GitHub Actions), R 4.0.2

man/fleaflicker_players.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/fleaflicker_userleagues.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)