Skip to content

Commit 98b8e28

Browse files
authored
Merge pull request #92 from nflverse/cran-v1.6.0
prepare cran v1.6.0
2 parents 81d8625 + e0211e7 commit 98b8e28

File tree

6 files changed

+14
-6
lines changed

6 files changed

+14
-6
lines changed

CRAN-SUBMISSION

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Version: 1.6.0
2+
Date: 2025-11-14 15:54:04 UTC
3+
SHA: bf02fecf6caf26be69dccf5197355ff1a89431e1

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: nflplotR
22
Title: NFL Logo Plots in 'ggplot2' and 'gt'
3-
Version: 1.5.0.9003
3+
Version: 1.6.0
44
Authors@R:
55
person("Sebastian", "Carl", , "[email protected]", role = c("aut", "cre"))
66
Description: A set of functions to visualize National Football League

NEWS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# nflplotR (development version)
1+
# nflplotR 1.6.0
22

33
* Added new experimental function `gt_pct_bar()`. A helper that adds filled percentage bars to 'gt' table to add context to values. (#76, #77)
44
* Changed css styling of images in package documentation by CRAN request. (#90)
@@ -10,7 +10,7 @@
1010
* 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.
1111
* All geoms and theme elements will print more informative warnings about team abbreviation, or player ID mismatches.
1212
* The gt logo rendering functions now add alt text for accessibility and to silence an annoying pkgdown warning. (#69)
13-
* 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)
13+
* 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)
1414

1515
# nflplotR 1.4.0
1616

R/nfl_team_factors.R

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,13 @@ nfl_team_factor <- function(teams, ...) {
6666
n_args <- rlang::dots_n(...)
6767

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

R/utils.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ NULL
9494
# nocov start
9595
release_bullets <- function() {
9696
c(
97-
'`devtools::check_mac_release()`',
9897
'`nflfastR:::my_rhub_check()`',
9998
'`pkgdown::check_pkgdown()`',
10099
'`nflfastR:::nflverse_thanks()`',

cran-comments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Submission
22

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

55
## R CMD check results
66

0 commit comments

Comments
 (0)