-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.Rmd
51 lines (36 loc) · 1.32 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# {fpl} <a href='https://nathaneastwood.github.io/fpl/'><img src='man/figures/logo.png' align="right" height="139" /></a>
[![CRAN status](https://www.r-pkg.org/badges/version/fpl)](https://cran.r-project.org/package=fpl)
[![Dependencies](https://tinyverse.netlify.com/badge/fpl)](https://cran.r-project.org/package=fpl)
![CRAN downloads](https://cranlogs.r-pkg.org/badges/fpl)
![check_cran](https://github.com/nathaneastwood/fpl/workflows/check_cran/badge.svg?branch=master)
## Overview
{fpl} is an {R6} wrapper around the Barclays Fantasy Premier League API.
## Installation
You can install:
* the development version from [GitHub](https://github.com/nathaneastwood/fpl) with
```{r installation, eval = FALSE}
# install.packages("remotes")
remotes::install_github("nathaneastwood/fpl")
```
## Usage
```{r usage}
library(fpl)
fpl <- FPL$new()
team <- fpl$get_team(11)
team_players <- team$get_players()
```
## Related Work
* [fpl](https://github.com/amosbastian/fpl) - a Python FPL API wrapper.
* [{fplscrapR}](https://github.com/wiscostret/fplscrapR) - A functional FPL API wrapper.