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
3 changes: 3 additions & 0 deletions CRAN-SUBMISSION
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Version: 1.6.0
Date: 2025-11-14 15:54:04 UTC
SHA: bf02fecf6caf26be69dccf5197355ff1a89431e1
2 changes: 1 addition & 1 deletion 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.5.0.9003
Version: 1.6.0
Authors@R:
person("Sebastian", "Carl", , "mrcaseb@gmail.com", role = c("aut", "cre"))
Description: A set of functions to visualize National Football League
Expand Down
4 changes: 2 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# nflplotR (development version)
# 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)
* Changed css styling of images in package documentation by CRAN request. (#90)
Expand All @@ -10,7 +10,7 @@
* The theme elements `element_nfl_logo()` and `element_nfl_wordmark()` now clean team abbreviations by calling `nflreadr::clean_team_abbrs()` and insert empty grobs for mismatches.
* All geoms and theme elements will print more informative warnings about team abbreviation, or player ID mismatches.
* The gt logo rendering functions now add alt text for accessibility and to silence an annoying pkgdown warning. (#69)
* nflplotR now requires R 4.1 because magick needs this R version. This also follows the [Tidyverse R version support rules](https://www.tidyverse.org/blog/2019/04/r-version-support/). (#71)
* nflplotR now requires R 4.1 because magick needs this R version. This also follows the [Tidyverse R version support rules](https://tidyverse.org/blog/2019/04/r-version-support/). (#71)

# nflplotR 1.4.0

Expand Down
8 changes: 7 additions & 1 deletion R/nfl_team_factors.R
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,13 @@ nfl_team_factor <- function(teams, ...) {
n_args <- rlang::dots_n(...)

# load nflreadr teams and make it a data.table
nfl_teams <- data.table::setDT(nflreadr::load_teams())
nfl_teams <- try(data.table::setDT(nflreadr::load_teams()), silent = TRUE)
if (nrow(nfl_teams) == 0L) {
cli::cli_alert_warning(
"Failed to download team info. Will return teams data."
)
return(teams)
}
div_split <- data.table::tstrsplit(nfl_teams$team_division, " ")
nfl_teams$team_division_rev <- paste(div_split[[2]], div_split[[1]])

Expand Down
1 change: 0 additions & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ NULL
# nocov start
release_bullets <- function() {
c(
'`devtools::check_mac_release()`',
'`nflfastR:::my_rhub_check()`',
'`pkgdown::check_pkgdown()`',
'`nflfastR:::nflverse_thanks()`',
Expand Down
2 changes: 1 addition & 1 deletion cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Submission

This is a minor release that makes nflplotR compatible with ggplot2 v4 and now fully transitioned its internals to ggpath v1.1.0
This is a minor release that fixes an issue with images in Rd files (requested by CRAN) and introduces a new experimental feature.

## R CMD check results

Expand Down