diff --git a/DESCRIPTION b/DESCRIPTION index 280c337..6f57a01 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: nflplotR Title: NFL Logo Plots in 'ggplot2' and 'gt' -Version: 1.5.0.9002 +Version: 1.5.0.9003 Authors@R: person("Sebastian", "Carl", , "mrcaseb@gmail.com", role = c("aut", "cre")) Description: A set of functions to visualize National Football League diff --git a/NEWS.md b/NEWS.md index 81e3223..5ac0fef 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,6 +1,7 @@ # nflplotR (development version) * 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) # nflplotR 1.5.0 diff --git a/R/gt_nfl.R b/R/gt_nfl.R index 5fb1ceb..de0a882 100644 --- a/R/gt_nfl.R +++ b/R/gt_nfl.R @@ -20,7 +20,7 @@ #' #' @export #' @section Output of below example: -#' \if{html}{\figure{logo_tbl.png}{options: width=75\%}} +#' \if{html}{\figure{logo_tbl.png}{options: style="width: 75\%;"}} #' @examples #' \donttest{ #' library(gt) @@ -89,7 +89,7 @@ gt_nfl_wordmarks <- function( #' @seealso The player headshot rendering function [gt_nfl_headshots()]. #' @export #' @section Output of below example: -#' \if{html}{\figure{cols_label.png}{options: width=75\%}} +#' \if{html}{\figure{cols_label.png}{options: style="width: 75\%;"}} #' @examples #' \donttest{ #' library(gt) @@ -244,7 +244,7 @@ get_image_uri <- function(team_abbr, type = c("logo", "wordmark")) { #' [gt_nfl_wordmarks()]. #' @export #' @section Output of below example: -#' \if{html}{\figure{headshot_tbl.png}{options: width=50\%}} +#' \if{html}{\figure{headshot_tbl.png}{options: style="width: 50\%;"}} #' @examples #' \donttest{ #' library(nflplotR) @@ -460,7 +460,7 @@ gt_render_image <- function(gt_tbl, ...) { #' @returns An object of class `gt_tbl`. #' @export #' @section Output of below example: -#' \if{html}{\figure{pct_tbl.png}{options: width=66\%}} +#' \if{html}{\figure{pct_tbl.png}{options: style="width: 66\%;"}} #' @examples #' library(data.table) #' diff --git a/man/gt_nfl_cols_label.Rd b/man/gt_nfl_cols_label.Rd index bc0cab1..9e0c7ad 100644 --- a/man/gt_nfl_cols_label.Rd +++ b/man/gt_nfl_cols_label.Rd @@ -35,7 +35,7 @@ column labels of 'gt' tables. } \section{Output of below example}{ -\if{html}{\figure{cols_label.png}{options: width=75\%}} +\if{html}{\figure{cols_label.png}{options: style="width: 75\%;"}} } \examples{ diff --git a/man/gt_nfl_headshots.Rd b/man/gt_nfl_headshots.Rd index 2350b87..5ac2ab3 100644 --- a/man/gt_nfl_headshots.Rd +++ b/man/gt_nfl_headshots.Rd @@ -31,7 +31,7 @@ render these images in html tables with the 'gt' package. } \section{Output of below example}{ -\if{html}{\figure{headshot_tbl.png}{options: width=50\%}} +\if{html}{\figure{headshot_tbl.png}{options: style="width: 50\%;"}} } \examples{ diff --git a/man/gt_nfl_logos.Rd b/man/gt_nfl_logos.Rd index be03438..3f727d5 100644 --- a/man/gt_nfl_logos.Rd +++ b/man/gt_nfl_logos.Rd @@ -34,7 +34,7 @@ render these images in html tables with the 'gt' package. } \section{Output of below example}{ -\if{html}{\figure{logo_tbl.png}{options: width=75\%}} +\if{html}{\figure{logo_tbl.png}{options: style="width: 75\%;"}} } \examples{ diff --git a/man/gt_pct_bar.Rd b/man/gt_pct_bar.Rd index 5081dca..fbffc2a 100644 --- a/man/gt_pct_bar.Rd +++ b/man/gt_pct_bar.Rd @@ -170,7 +170,7 @@ nflplotR works with the 'gt' package } \section{Output of below example}{ -\if{html}{\figure{pct_tbl.png}{options: width=66\%}} +\if{html}{\figure{pct_tbl.png}{options: style="width: 66\%;"}} } \examples{