Skip to content

Commit

Permalink
Adjust testing examples that fail
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronGullickson committed Feb 25, 2024
1 parent c8265f7 commit 08b3b18
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion tests/gt-examples/03-latex/latex-01-iris.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ gt(iris) %>%
) %>%
tab_source_note(
source_note = md("The data were collected by *Anderson* (1935).")
)
) %>%
tab_options(latex.use.longtable = TRUE)
```
3 changes: 2 additions & 1 deletion tests/gt-examples/03-latex/latex-06-mtcars.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -99,5 +99,6 @@ gt(mtcars, rownames_to_stub = TRUE) %>%
cols_label(
hp = md("*HP*"),
qsec = "QMT, seconds"
)
) %>%
tab_options(latex.use.longtable = TRUE)
```
5 changes: 3 additions & 2 deletions tests/gt-examples/03-latex/latex-13-adding_footnotes.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ gt(
data = tbl,
groupname_col = "date"
) %>%
tab_header(title = "The Table Title", subtitle = "The subtitle.") %>%
#tab_header(title = "The Table Title", subtitle = "The subtitle.") %>%
tab_spanner(
label = "values",
columns = starts_with("value")
Expand Down Expand Up @@ -75,5 +75,6 @@ gt(
tab_footnote(
footnote = md("The `subtitle` can likewise get a footnote."),
locations = cells_title(groups = "subtitle")
)
) %>%
tab_options(latex.use.longtable = TRUE)
```

0 comments on commit 08b3b18

Please sign in to comment.