From 08b3b18e8d5140e828993bc7bae8df9aadd51f3d Mon Sep 17 00:00:00 2001 From: Aaron Gullickson Date: Sun, 25 Feb 2024 12:11:48 -0800 Subject: [PATCH] Adjust testing examples that fail --- tests/gt-examples/03-latex/latex-01-iris.Rmd | 3 ++- tests/gt-examples/03-latex/latex-06-mtcars.Rmd | 3 ++- tests/gt-examples/03-latex/latex-13-adding_footnotes.Rmd | 5 +++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/tests/gt-examples/03-latex/latex-01-iris.Rmd b/tests/gt-examples/03-latex/latex-01-iris.Rmd index 626f0f2d1c..8c12ef0fe1 100644 --- a/tests/gt-examples/03-latex/latex-01-iris.Rmd +++ b/tests/gt-examples/03-latex/latex-01-iris.Rmd @@ -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) ``` diff --git a/tests/gt-examples/03-latex/latex-06-mtcars.Rmd b/tests/gt-examples/03-latex/latex-06-mtcars.Rmd index 1e75aa4bc2..601414d227 100644 --- a/tests/gt-examples/03-latex/latex-06-mtcars.Rmd +++ b/tests/gt-examples/03-latex/latex-06-mtcars.Rmd @@ -99,5 +99,6 @@ gt(mtcars, rownames_to_stub = TRUE) %>% cols_label( hp = md("*HP*"), qsec = "QMT, seconds" - ) + ) %>% + tab_options(latex.use.longtable = TRUE) ``` diff --git a/tests/gt-examples/03-latex/latex-13-adding_footnotes.Rmd b/tests/gt-examples/03-latex/latex-13-adding_footnotes.Rmd index 075c9b3def..6d1b9a26c1 100644 --- a/tests/gt-examples/03-latex/latex-13-adding_footnotes.Rmd +++ b/tests/gt-examples/03-latex/latex-13-adding_footnotes.Rmd @@ -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") @@ -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) ```