Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@
^[.]?air[.]toml$
^\.vscode$
^\.git-blame-ignore-revs$
^\.positai$
^\.claude$
2 changes: 1 addition & 1 deletion .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
_R_CHECK_TEST_TIMING_CPU_TO_ELAPSED_THRESHOLD_: "NA"

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- uses: r-lib/actions/setup-pandoc@v2

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/format-suggest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
pull-requests: write

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.head.sha }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- uses: r-lib/actions/setup-pandoc@v2

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- uses: r-lib/actions/setup-r@v2
with:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,4 @@ vignettes/*.pdf
docs
.DS_Store
inst/doc
.positai
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: nflplotR
Title: NFL Logo Plots in 'ggplot2' and 'gt'
Version: 1.6.0
Version: 1.6.0.9000
Authors@R:
person("Sebastian", "Carl", , "mrcaseb@gmail.com", role = c("aut", "cre"))
Description: A set of functions to visualize National Football League
Expand Down Expand Up @@ -40,4 +40,4 @@ Config/Needs/website: mrcaseb/ggpath
Config/testthat/edition: 3
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.3
Config/roxygen2/version: 8.1.0
12 changes: 8 additions & 4 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,15 @@ export(valid_team_names)
import(data.table)
import(grid)
importFrom(ggpath,element_path)
importFrom(ggplot2,element)
importFrom(ggplot2,element_grob)
importFrom(ggplot2,
element,
element_grob
)
importFrom(graphics,par)
importFrom(lifecycle,deprecated)
importFrom(nflreadr,nflverse_sitrep)
importFrom(rlang,"%||%")
importFrom(rlang,.data)
importFrom(rlang,
"%||%",
.data
)
importFrom(tools,R_user_dir)
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# nflplotR (development version)

* Updated Rams logo and wordmark after 2026 minor rebranding
* Updated Titans logo, wordmark, and colors after 2026 rebranding

# nflplotR 1.6.0

* Added new experimental function `gt_pct_bar()`. A helper that adds filled percentage bars to 'gt' table to add context to values. (#76, #77)
Expand Down
Binary file modified R/sysdata.rda
Binary file not shown.
10 changes: 7 additions & 3 deletions data-raw/build_logo_list.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,13 @@ logo_list <- lapply(teams_colors_logos$team_abbr, function(x) {
url <- teams_colors_logos$team_logo_espn[teams_colors_logos$team_abbr == x]
# Use the following URL to load logos from nfl dot com. Sometimes ESPN and
# NFL do not use identical logos, e.g. the new Jets logo in 2024
# if (x == "NYJ"){
# url <- paste0("https://static.www.nfl.com/t_q-best/league/api/clubs/logos/", x, ".png")
# }
if (x == "NYJ") {
url <- paste0(
"https://static.www.nfl.com/t_q-best/league/api/clubs/logos/",
x,
".png"
)
}
# url <- paste0("https://static.www.nfl.com/t_q-best/league/api/clubs/logos/", x)
curl::curl_fetch_memory(url)$content
})
Expand Down
6 changes: 3 additions & 3 deletions man/geom_lines.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 7 additions & 9 deletions man/nflplotR-package.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/nflverse_sitrep.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/reexports.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions tests/testthat/_snaps/geom_nfl_logos/p1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 11 additions & 11 deletions tests/testthat/_snaps/geom_nfl_logos/p2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 10 additions & 10 deletions tests/testthat/_snaps/geom_nfl_logos/p3.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/geom_nfl_wordmarks/p1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/geom_nfl_wordmarks/p2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/scale_nfl/p1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/theme-elements/p1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/theme-elements/p2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading