Skip to content

Commit

Permalink
Successful CRAN submission.
Browse files Browse the repository at this point in the history
  • Loading branch information
aymennasri committed Jan 30, 2025
1 parent bf26158 commit 6aacacf
Show file tree
Hide file tree
Showing 53 changed files with 23 additions and 1,054 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@
.DS_Store
.quarto
docs
.Rproj
^revdep$
6 changes: 4 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
Package: ggfootball
Title: Plotting Expected Goals (xG) Stats with Understat Data
Title: Plotting Expected Goals (xG) Stats with 'Understat' Data
Version: 0.1.0
Authors@R:
person("Aymen", "Nasri", , "aymennasrii@proton.me", role = c("aut", "cre", "cph"))
Description: Plot Understat Expected Goals (xG) and shots data.
Description: Scrapes shots data from 'Understat' <https://understat.com/> and visualizes it using interactive plots:
- A detailed shot map displaying the location, type, and xG value of shots taken by both teams.
- An xG timeline chart showing the cumulative xG for each team over time, annotated with the details of scored goals.
License: GPL (>= 3)
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short notice like this
when it starts in an interactive mode:

{ggfootball} Copyright (C) 2024 Aymen Nasri
{ggfootball} Copyright (C) 2025 Aymen Nasri
This program comes with ABSOLUTELY NO WARRANTY; for details type 'show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type 'show c' for details.
Expand Down
3 changes: 1 addition & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# ggfootball 0.1.0

* Initial CRAN submission
* Successful CRAN submission.

# ggfootball 0.0.0.9000

* First commit
* Added function for plotting xG/shots map using understat data `xg_map()`
* Added function for plotting xG charts using understat data `xg_chart()`
* Added `NEWS.md` and changed license from Apache to GPL v3
7 changes: 6 additions & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,16 @@ knitr::opts_chunk$set(
<!-- badges: start -->

[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html#experimental)
[![](https://cranlogs.r-pkg.org/badges/ggfootball)](https://cran.r-project.org/package=ggfootball)
<!-- badges: end -->

## Overview

An R package for plotting [understat](https://understat.com/) data; an xG chart and an xG map.
The ggfootball package provides R functions that scrape shots data from [understat](https://understat.com/)
and visualizes it using interactive plots:

- A detailed shot map displaying the location, type, and expected goals (xG) value of shots taken by both teams.
- An xG timeline chart showing the cumulative expected goals for each team over time, annotated with the details of scored goals.

## Installation

Expand Down
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,19 @@

[![Lifecycle:
experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html#experimental)
[![](https://cranlogs.r-pkg.org/badges/ggfootball)](https://cran.r-project.org/package=ggfootball)
<!-- badges: end -->

## Overview

An R package for plotting [understat](https://understat.com/) data; an
xG chart and an xG map.
The ggfootball package provides R functions that scrape shots data from
[understat](https://understat.com/) and visualizes it using interactive
plots:

- A detailed shot map displaying the location, type, and expected goals
(xG) value of shots taken by both teams.
- An xG timeline chart showing the cumulative expected goals for each
team over time, annotated with the details of scored goals.

## Installation

Expand Down
19 changes: 0 additions & 19 deletions ggfootball.Rcheck/00_pkg_src/ggfootball/DESCRIPTION

This file was deleted.

2 changes: 0 additions & 2 deletions ggfootball.Rcheck/00_pkg_src/ggfootball/LICENSE.note

This file was deleted.

23 changes: 0 additions & 23 deletions ggfootball.Rcheck/00_pkg_src/ggfootball/NAMESPACE

This file was deleted.

7 changes: 0 additions & 7 deletions ggfootball.Rcheck/00_pkg_src/ggfootball/NEWS.md

This file was deleted.

71 changes: 0 additions & 71 deletions ggfootball.Rcheck/00_pkg_src/ggfootball/R/understat_scraper.R

This file was deleted.

Loading

0 comments on commit 6aacacf

Please sign in to comment.