Skip to content

Commit a79945d

Browse files
authored
Merge pull request #158 from aghaynes/master
address CRAN notes
2 parents 0bc84ec + 7c480d7 commit a79945d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+110
-110
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@ Suggests:
4848
lifecycle (>= 1.0.0)
4949
Encoding: UTF-8
5050
Roxygen: list(markdown = TRUE)
51-
RoxygenNote: 7.3.2
51+
RoxygenNote: 7.3.3
5252
Config/testthat/edition: 3
5353
Config/testthat/parallel: true

R/fmt_pad_num.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#' gt() %>%
1919
#' fmt_pad_num(columns = numbers, nsmall = 4)
2020
#' @section Figures:
21-
#' \if{html}{\figure{fmt_pad_num.png}{options: width=20\%}}
21+
#' \if{html}{\figure{fmt_pad_num.png}{options: style="width=20\%;"}}
2222
#'
2323
#' @family Utilities
2424
#' @section Function ID:

R/fmt_symbol_first.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#' fmt_symbol_first(hp, symbol = "°", suffix = "F", symbol_first = TRUE)
2929
#'
3030
#' @section Figures:
31-
#' \if{html}{\figure{gt_fmt_first.png}{options: width=100\%}}
31+
#' \if{html}{\figure{gt_fmt_first.png}{options: style="width=100\%;"}}
3232
#'
3333
#' @family Utilities
3434
#' @section Function ID:

R/fontawesome-icons.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@
225225
#' gt_fa_rating(rating, icon = "r-project")
226226
#' ```
227227
#' @section Figures:
228-
#' \if{html}{\figure{fa-stars.png}{options: width=60\%}}
228+
#' \if{html}{\figure{fa-stars.png}{options: style="width=60\%;"}}
229229
#'
230230
#' @family Utilities
231231
#' @section Function ID:
@@ -304,7 +304,7 @@ gt_fa_rating <- function(
304304
#' gt_fa_rank_change(x, font_color = "match")
305305
#' ```
306306
#' @section Figures:
307-
#' \if{html}{\figure{fa_rank_change.png}{options: width=5\%}}
307+
#' \if{html}{\figure{fa_rank_change.png}{options: style="width=5\%;"}}
308308
#'
309309
#' @family Utilities
310310
gt_fa_rank_change <- function(

R/get_row_index.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
#' row_sty(3) %>%
6565
#' row_sty(5)
6666
#' ```
67-
#' \if{html}{\figure{ungrouped-tab.png}{options: width=40\%}}
67+
#' \if{html}{\figure{ungrouped-tab.png}{options: style="width=40\%;"}}
6868
#' ### Grouped data
6969
#'
7070
#' However, for grouped data, the row indices are representative of the underlying
@@ -77,7 +77,7 @@
7777
#' row_sty(3) %>% ## actually row 5
7878
#' row_sty(5) ## actually row 2
7979
#' ```
80-
#' \if{html}{\figure{grouped-tab.png}{options: width=40\%}}
80+
#' \if{html}{\figure{grouped-tab.png}{options: style="width=40\%;"}}
8181
#'
8282
#' The `get_row_index()` function gives ability to create an index of the final
8383
#' output, so you can reference specific rows by number.
@@ -89,14 +89,14 @@
8989
#' row_sty(4) %>% ## wrong row, actually row 6 visually
9090
#' row_sty(tab_index[4]) ## correct row, actually row 4
9191
#' ```
92-
#' \if{html}{\figure{grouped-tab-row4.png}{options: width=40\%}}
92+
#' \if{html}{\figure{grouped-tab-row4.png}{options: style="width=40\%;"}}
9393
#' ```r
9494
#' tab2 %>%
9595
#' row_sty(tab_index[1]) %>%
9696
#' row_sty(tab_index[3]) %>%
9797
#' row_sty(tab_index[5])
9898
#' ```
99-
#' \if{html}{\figure{grouped-tab-index.png}{options: width=40\%}}
99+
#' \if{html}{\figure{grouped-tab-index.png}{options: style="width=40\%;"}}
100100
#'
101101
get_row_index <- function(gt_object) {
102102
is_gt_stop(gt_object)

R/gt_add_divider.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#' gt_add_divider(columns = "cyl", style = "dashed")
1818
#' ```
1919
#' @section Figures:
20-
#' \if{html}{\figure{add-divider.png}{options: width=70\%}}
20+
#' \if{html}{\figure{add-divider.png}{options: style="width=70\%;"}}
2121
#'
2222
#' @family Utilities
2323
#' @section Function ID:

R/gt_alert_icon.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#' gt::gt() %>%
2525
#' gt_alert_icon(warn)
2626
#' ```
27-
#' \if{html}{\figure{man/figures/gt_alert_icon-binary.png}{options: width=100\%}}
27+
#' \if{html}{\figure{man/figures/gt_alert_icon-binary.png}{options: style="width=100\%;"}}
2828
gt_alert_icon <- function(gt_object,
2929
column,
3030
palette = c("#a962b6", "#f1f1f1", "#378e38"),

R/gt_color_box.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#' palette = c("purple", "lightgrey", "green"))
2828
#' ```
2929
#' @section Figures:
30-
#' \if{html}{\figure{color_box.png}{options: width=30\%}}
30+
#' \if{html}{\figure{color_box.png}{options: style="width=30\%;"}}
3131
#'
3232
#' @family Colors
3333
#' @section Function ID:

R/gt_color_rows.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@
5353
#' palette = "colorblindr::OkabeIto_black", domain = c(3,4,5))
5454
#' ```
5555
#' @section Figures:
56-
#' \if{html}{\figure{basic-pal.png}{options: width=100\%}}
56+
#' \if{html}{\figure{basic-pal.png}{options: style="width=100\%;"}}
5757
#'
58-
#' \if{html}{\figure{blue-pal.png}{options: width=100\%}}
58+
#' \if{html}{\figure{blue-pal.png}{options: style="width=100\%;"}}
5959
#'
60-
#' \if{html}{\figure{custom-pal.png}{options: width=100\%}}
60+
#' \if{html}{\figure{custom-pal.png}{options: style="width=100\%;"}}
6161
#'
62-
#' \if{html}{\figure{discrete-pal.png}{options: width=100\%}}
62+
#' \if{html}{\figure{discrete-pal.png}{options: style="width=100\%;"}}
6363
#'
6464
#' @family Colors
6565
#' @section Function ID:

R/gt_dot_bar.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#' cols_width(cars ~ px(125))
2323
#' ```
2424
#' @section Figures:
25-
#' \if{html}{\figure{gt_dot_bar.png}{options: width=50\%}}
25+
#' \if{html}{\figure{gt_dot_bar.png}{options: style="width=50\%;"}}
2626
#'
2727
#' @family Themes
2828

0 commit comments

Comments
 (0)