Skip to content

Commit 81d8625

Browse files
authored
Merge pull request #90 from nflverse/images-in-rd
Images in rd
2 parents 477ab08 + c1fad77 commit 81d8625

File tree

7 files changed

+10
-9
lines changed

7 files changed

+10
-9
lines changed

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.9002
3+
Version: 1.5.0.9003
44
Authors@R:
55
person("Sebastian", "Carl", , "mrcaseb@gmail.com", role = c("aut", "cre"))
66
Description: A set of functions to visualize National Football League

NEWS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# nflplotR (development version)
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)
4+
* Changed css styling of images in package documentation by CRAN request. (#90)
45

56
# nflplotR 1.5.0
67

R/gt_nfl.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#' <https://nflplotr.nflverse.com/articles/gt.html>
2121
#' @export
2222
#' @section Output of below example:
23-
#' \if{html}{\figure{logo_tbl.png}{options: width=75\%}}
23+
#' \if{html}{\figure{logo_tbl.png}{options: style="width: 75\%;"}}
2424
#' @examples
2525
#' \donttest{
2626
#' library(gt)
@@ -89,7 +89,7 @@ gt_nfl_wordmarks <- function(
8989
#' @seealso The player headshot rendering function [gt_nfl_headshots()].
9090
#' @export
9191
#' @section Output of below example:
92-
#' \if{html}{\figure{cols_label.png}{options: width=75\%}}
92+
#' \if{html}{\figure{cols_label.png}{options: style="width: 75\%;"}}
9393
#' @examples
9494
#' \donttest{
9595
#' library(gt)
@@ -244,7 +244,7 @@ get_image_uri <- function(team_abbr, type = c("logo", "wordmark")) {
244244
#' [gt_nfl_wordmarks()].
245245
#' @export
246246
#' @section Output of below example:
247-
#' \if{html}{\figure{headshot_tbl.png}{options: width=50\%}}
247+
#' \if{html}{\figure{headshot_tbl.png}{options: style="width: 50\%;"}}
248248
#' @examples
249249
#' \donttest{
250250
#' library(nflplotR)
@@ -460,7 +460,7 @@ gt_render_image <- function(gt_tbl, ...) {
460460
#' @returns An object of class `gt_tbl`.
461461
#' @export
462462
#' @section Output of below example:
463-
#' \if{html}{\figure{pct_tbl.png}{options: width=66\%}}
463+
#' \if{html}{\figure{pct_tbl.png}{options: style="width: 66\%;"}}
464464
#' @examples
465465
#' library(data.table)
466466
#'

man/gt_nfl_cols_label.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/gt_nfl_headshots.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/gt_nfl_logos.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/gt_pct_bar.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)