Skip to content

Commit

Permalink
Fix test and update README
Browse files Browse the repository at this point in the history
Package was removed from CRAN :(
  • Loading branch information
Kiernan Nicholls committed May 17, 2024
1 parent 63ab86d commit f8967cf
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 14 deletions.
12 changes: 7 additions & 5 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,15 @@ If a function doesn't work as intended, please file an [issue on GitHub][iss].

## Installation

You can install the release version of fflr from [CRAN][cran]:
As of 2024-05-17, fflr was removed from [CRAN][cran] for failure to comply with
the policy on internet resources. This issue arose when ESPN changed their API
format and adjusted andpoints to account for the end of the 2023 NFL season.

```{r cran, eval=FALSE}
install.packages("fflr")
```
I hope to work with CRAN to get the package published again before the 2024
season, but it may not be possible.

The most recent development version can be installed from [GitHub][gh]:
In the meantime, the most recent development version can always be installed
from [GitHub][gh]:

```{r remote, eval=FALSE}
# install.packages("remotes")
Expand Down
18 changes: 10 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,17 @@ on GitHub](https://github.com/k5cents/fflr/issues).

## Installation

You can install the release version of fflr from
[CRAN](https://cran.r-project.org/package=fflr):
As of 2024-05-17, fflr was removed from
[CRAN](https://cran.r-project.org/package=fflr) for failure to comply
with the policy on internet resources. This issue arose when ESPN
changed their API format and adjusted andpoints to account for the end
of the 2023 NFL season.

``` r
install.packages("fflr")
```
I hope to work with CRAN to get the package published again before the
2024 season, but it may not be possible.

The most recent development version can be installed from
[GitHub](https://github.com/k5cents/fflr):
In the meantime, the most recent development version can always be
installed from [GitHub](https://github.com/k5cents/fflr):

``` r
# install.packages("remotes")
Expand All @@ -46,7 +48,7 @@ remotes::install_github("k5cents/fflr")
``` r
library(fflr)
packageVersion("fflr")
#> [1] '2.3.0'
#> [1] '2.3.0.9000'
```

Data is only available for public leagues. See [this help
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-events.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ test_that("get NFL game schedule times", {
skip_empty(e)
expect_s3_class(e, "data.frame")
# expect_type(e$competitors, "list")
expect_length(e, 7)
expect_length(e, 13)
})

test_that("get NFL game scores", {
Expand Down

0 comments on commit f8967cf

Please sign in to comment.