diff --git a/R/dt_options.R b/R/dt_options.R index 671e689722..39cb1f3de7 100644 --- a/R/dt_options.R +++ b/R/dt_options.R @@ -88,7 +88,7 @@ dt_options_tbl <- "table_background_color", TRUE, "table", "value", "#FFFFFF", "table_additional_css", FALSE, "table", "values", character(0L), "table_font_names", FALSE, "table", "values", default_fonts_vec, - "table_font_size", TRUE, "table", "px", "16px", + "table_font_size", TRUE, "table", "px", NA_character_, "table_font_weight", TRUE, "table", "value", "normal", "table_font_style", TRUE, "table", "value", "normal", "table_font_color", TRUE, "table", "value", "#333333", diff --git a/R/render_as_i_html.R b/R/render_as_i_html.R index ba9a1337aa..259a4a722c 100644 --- a/R/render_as_i_html.R +++ b/R/render_as_i_html.R @@ -609,7 +609,7 @@ render_as_ihtml <- function(data, id) { style = list( `font-family` = font_family_str, #1693 - fontSize = table_font_size + fontSize = if (is.na(table_font_size)) NULL else table_font_size ), tableStyle = list( borderTopStyle = column_labels_border_top_style, diff --git a/R/utils_render_grid.R b/R/utils_render_grid.R index b033268668..26e65d8c1c 100644 --- a/R/utils_render_grid.R +++ b/R/utils_render_grid.R @@ -1222,6 +1222,11 @@ parse_vjust <- function(vjust) { # setting the font relative to the 'gt_table' font size. parse_fontsize <- function(size, base) { + # if fontsize is not set by the user, it will be NULL here; use the base fontsize + if (is.null(size)) { + return(base) + } + new_size <- rep(base[1], length(size)) # Parse percentages relative to base diff --git a/R/utils_render_latex.R b/R/utils_render_latex.R index 932c5f356d..f0b0357b13 100644 --- a/R/utils_render_latex.R +++ b/R/utils_render_latex.R @@ -1670,6 +1670,12 @@ create_fontsize_statement_l <- function(data) { size <- dt_options_get_value(data, "table_font_size") + # if font size is left unset, use the document's font at this point instead of + # emitting a font size change + if (is.na(size)) { + return("") + } + fs_fmt <- "\\fontsize{%3.1fpt}{%3.1fpt}\\selectfont\n" if (grepl(pattern = "^[[:digit:]]+(\\%|in|cm|emu|em|pt|px)$", size)) { diff --git a/inst/css/gt_styles_default.scss b/inst/css/gt_styles_default.scss index af744b2750..f315e7ed86 100644 --- a/inst/css/gt_styles_default.scss +++ b/inst/css/gt_styles_default.scss @@ -16,7 +16,9 @@ margin-left: $table_margin_left; // table.margin.left margin-right: $table_margin_right; // table.margin.right color: font-color($table_background_color); - font-size: $table_font_size; // table.font.size + @if variable-exists("table_font_size") { + font-size: $table_font_size; // table.font.size + } font-weight: $table_font_weight; // table.font.weight font-style: $table_font_style; // table.font.style background-color: $table_background_color; // table.background.color diff --git a/tests/testthat/_snaps/as_latex.md b/tests/testthat/_snaps/as_latex.md index f671e8c95f..47174a32d8 100644 --- a/tests/testthat/_snaps/as_latex.md +++ b/tests/testthat/_snaps/as_latex.md @@ -3,7 +3,7 @@ Code gt_latex_styled Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{l|rlcrrr}\n\\toprule\n & \\multicolumn{3}{c}{{\\itshape heading}} & & \\multicolumn{2}{c}{heading} \\\\ \n\\cmidrule(lr){2-4} \\cmidrule(lr){6-7}\n{$\\overline{\\mbox{stubhead}}$} & {NUM} & char & fctr\\textsuperscript{\\textit{1}} & time & {DATETIME} & currency \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{7}{l}{grp\\_a} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n{\\cellcolor[HTML]{AA0000}{\\textcolor[HTML]{FFFFFF}{\\hspace*{3.75pt} row\\_1}}} & 0.1111 & apricot & {\\fontsize{15}{18.75}\\selectfont \\textcolor[HTML]{0000FF}{one}} & 13:35 & {\\scriptsize 2018-01-01 02:22} & 49.95 \\\\ \n{\\slshape \\hspace{11.25pt}\\cellcolor[HTML]{AA0000}{\\textcolor[HTML]{FFFFFF}{\\hspace*{3.75pt} row\\_2}}} & 2.2220 & {\\bfseries \\hspace{15pt}banana} & {\\fontsize{15}{18.75}\\selectfont \\textcolor[HTML]{0000FF}{two}} & 14:40 & {\\scriptsize 2018-02-02 14:33} & 17.95 \\\\ \n{\\cellcolor[HTML]{AA0000}{\\textcolor[HTML]{FFFFFF}{\\hspace*{3.75pt} row\\_3}}} & 33.3300 & coconut & {\\fontsize{15}{18.75}\\selectfont \\textcolor[HTML]{0000FF}{three}} & \\textsuperscript{\\textit{2}}{\\fontsize{15}{18.75}\\selectfont \\underline{\\textcolor[HTML]{FF0000}{15:45}}} & {\\scriptsize 2018-03-03 03:44} & 1.39 \\\\ \n{\\slshape \\hspace{11.25pt}\\cellcolor[HTML]{AA0000}{\\textcolor[HTML]{FFFFFF}{\\hspace*{3.75pt} row\\_4}}} & 444.4000 & {\\bfseries \\hspace{15pt}durian} & {\\fontsize{15}{18.75}\\selectfont \\textcolor[HTML]{0000FF}{four}} & {\\fontsize{15}{18.75}\\selectfont \\underline{\\textcolor[HTML]{FF0000}{16:50}}} & {\\scriptsize 2018-04-04 15:55} & 65100.00 \\\\ \n\\midrule \nTotal & {\\cellcolor[HTML]{00FF00}{480.06}} & — & — & — & — & {\\cellcolor[HTML]{00FF00}{65,169.29}} \\\\ \nAvg & 120.02 & — & — & — & — & 16,292.32 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{7}{l}{{\\bfseries \\cellcolor[HTML]{CCCCFF}{grp\\_b}}} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n{\\slshape \\hspace{11.25pt}\\cellcolor[HTML]{AA0000}{\\textcolor[HTML]{FFFFFF}{\\hspace*{3.75pt} row\\_5}}} & 5550.0000 & {\\bfseries \\hspace{15pt}NA} & {\\fontsize{15}{18.75}\\selectfont \\textcolor[HTML]{0000FF}{five}} & 17:55 & {\\scriptsize 2018-05-05 04:00} & 1325.81 \\\\ \n\\midrule \n\\midrule \n{\\bfseries Grand Total} & {\\cellcolor[HTML]{AAAAAA}{6,030.06}} & {\\cellcolor[HTML]{AAAAAA}{—}} & {\\cellcolor[HTML]{AAAAAA}{—}} & {\\cellcolor[HTML]{AAAAAA}{—}} & {\\cellcolor[HTML]{AAAAAA}{—}} & {\\cellcolor[HTML]{AAAAAA}{66,495.10}} \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\n\\textsuperscript{\\textit{1}}{\\bfseries This is a footnote in the column labels.}\\\\\n\\textsuperscript{\\textit{2}}{\\bfseries This is a footnote. With a second line.}\\\\\n{\\itshape \\fontsize{6}{7.5}\\selectfont NOTES: A mtcars example.\\\\\n}\\end{minipage}\n\\endgroup\n" + [1] "\\begingroup\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{l|rlcrrr}\n\\toprule\n & \\multicolumn{3}{c}{{\\itshape heading}} & & \\multicolumn{2}{c}{heading} \\\\ \n\\cmidrule(lr){2-4} \\cmidrule(lr){6-7}\n{$\\overline{\\mbox{stubhead}}$} & {NUM} & char & fctr\\textsuperscript{\\textit{1}} & time & {DATETIME} & currency \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{7}{l}{grp\\_a} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n{\\cellcolor[HTML]{AA0000}{\\textcolor[HTML]{FFFFFF}{\\hspace*{3.75pt} row\\_1}}} & 0.1111 & apricot & {\\fontsize{15}{18.75}\\selectfont \\textcolor[HTML]{0000FF}{one}} & 13:35 & {\\scriptsize 2018-01-01 02:22} & 49.95 \\\\ \n{\\slshape \\hspace{11.25pt}\\cellcolor[HTML]{AA0000}{\\textcolor[HTML]{FFFFFF}{\\hspace*{3.75pt} row\\_2}}} & 2.2220 & {\\bfseries \\hspace{15pt}banana} & {\\fontsize{15}{18.75}\\selectfont \\textcolor[HTML]{0000FF}{two}} & 14:40 & {\\scriptsize 2018-02-02 14:33} & 17.95 \\\\ \n{\\cellcolor[HTML]{AA0000}{\\textcolor[HTML]{FFFFFF}{\\hspace*{3.75pt} row\\_3}}} & 33.3300 & coconut & {\\fontsize{15}{18.75}\\selectfont \\textcolor[HTML]{0000FF}{three}} & \\textsuperscript{\\textit{2}}{\\fontsize{15}{18.75}\\selectfont \\underline{\\textcolor[HTML]{FF0000}{15:45}}} & {\\scriptsize 2018-03-03 03:44} & 1.39 \\\\ \n{\\slshape \\hspace{11.25pt}\\cellcolor[HTML]{AA0000}{\\textcolor[HTML]{FFFFFF}{\\hspace*{3.75pt} row\\_4}}} & 444.4000 & {\\bfseries \\hspace{15pt}durian} & {\\fontsize{15}{18.75}\\selectfont \\textcolor[HTML]{0000FF}{four}} & {\\fontsize{15}{18.75}\\selectfont \\underline{\\textcolor[HTML]{FF0000}{16:50}}} & {\\scriptsize 2018-04-04 15:55} & 65100.00 \\\\ \n\\midrule \nTotal & {\\cellcolor[HTML]{00FF00}{480.06}} & — & — & — & — & {\\cellcolor[HTML]{00FF00}{65,169.29}} \\\\ \nAvg & 120.02 & — & — & — & — & 16,292.32 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{7}{l}{{\\bfseries \\cellcolor[HTML]{CCCCFF}{grp\\_b}}} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n{\\slshape \\hspace{11.25pt}\\cellcolor[HTML]{AA0000}{\\textcolor[HTML]{FFFFFF}{\\hspace*{3.75pt} row\\_5}}} & 5550.0000 & {\\bfseries \\hspace{15pt}NA} & {\\fontsize{15}{18.75}\\selectfont \\textcolor[HTML]{0000FF}{five}} & 17:55 & {\\scriptsize 2018-05-05 04:00} & 1325.81 \\\\ \n\\midrule \n\\midrule \n{\\bfseries Grand Total} & {\\cellcolor[HTML]{AAAAAA}{6,030.06}} & {\\cellcolor[HTML]{AAAAAA}{—}} & {\\cellcolor[HTML]{AAAAAA}{—}} & {\\cellcolor[HTML]{AAAAAA}{—}} & {\\cellcolor[HTML]{AAAAAA}{—}} & {\\cellcolor[HTML]{AAAAAA}{66,495.10}} \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\n\\textsuperscript{\\textit{1}}{\\bfseries This is a footnote in the column labels.}\\\\\n\\textsuperscript{\\textit{2}}{\\bfseries This is a footnote. With a second line.}\\\\\n{\\itshape \\fontsize{6}{7.5}\\selectfont NOTES: A mtcars example.\\\\\n}\\end{minipage}\n\\endgroup\n" attr(,"class") [1] "knit_asis" attr(,"knit_meta") @@ -106,7 +106,7 @@ Code gt_latex_styled Output - [1] "\\begin{table}[!t]\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{tabular*}{\\linewidth}{@{\\extracolsep{\\fill}}l|rlcrrr}\n\\toprule\n & \\multicolumn{3}{c}{{\\itshape heading}} & & \\multicolumn{2}{c}{heading} \\\\ \n\\cmidrule(lr){2-4} \\cmidrule(lr){6-7}\n{$\\overline{\\mbox{stubhead}}$} & {NUM} & char & fctr\\textsuperscript{\\textit{1}} & time & {DATETIME} & currency \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{7}{l}{grp\\_a} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n{\\cellcolor[HTML]{AA0000}{\\textcolor[HTML]{FFFFFF}{\\hspace*{3.75pt} row\\_1}}} & 0.1111 & apricot & {\\fontsize{15}{18.75}\\selectfont \\textcolor[HTML]{0000FF}{one}} & 13:35 & {\\scriptsize 2018-01-01 02:22} & 49.95 \\\\ \n{\\slshape \\hspace{11.25pt}\\cellcolor[HTML]{AA0000}{\\textcolor[HTML]{FFFFFF}{\\hspace*{3.75pt} row\\_2}}} & 2.2220 & {\\bfseries \\hspace{15pt}banana} & {\\fontsize{15}{18.75}\\selectfont \\textcolor[HTML]{0000FF}{two}} & 14:40 & {\\scriptsize 2018-02-02 14:33} & 17.95 \\\\ \n{\\cellcolor[HTML]{AA0000}{\\textcolor[HTML]{FFFFFF}{\\hspace*{3.75pt} row\\_3}}} & 33.3300 & coconut & {\\fontsize{15}{18.75}\\selectfont \\textcolor[HTML]{0000FF}{three}} & \\textsuperscript{\\textit{2}}{\\fontsize{15}{18.75}\\selectfont \\underline{\\textcolor[HTML]{FF0000}{15:45}}} & {\\scriptsize 2018-03-03 03:44} & 1.39 \\\\ \n{\\slshape \\hspace{11.25pt}\\cellcolor[HTML]{AA0000}{\\textcolor[HTML]{FFFFFF}{\\hspace*{3.75pt} row\\_4}}} & 444.4000 & {\\bfseries \\hspace{15pt}durian} & {\\fontsize{15}{18.75}\\selectfont \\textcolor[HTML]{0000FF}{four}} & {\\fontsize{15}{18.75}\\selectfont \\underline{\\textcolor[HTML]{FF0000}{16:50}}} & {\\scriptsize 2018-04-04 15:55} & 65100.00 \\\\ \n\\midrule \nTotal & {\\cellcolor[HTML]{00FF00}{480.06}} & — & — & — & — & {\\cellcolor[HTML]{00FF00}{65,169.29}} \\\\ \nAvg & 120.02 & — & — & — & — & 16,292.32 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{7}{l}{{\\bfseries \\cellcolor[HTML]{CCCCFF}{grp\\_b}}} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n{\\slshape \\hspace{11.25pt}\\cellcolor[HTML]{AA0000}{\\textcolor[HTML]{FFFFFF}{\\hspace*{3.75pt} row\\_5}}} & 5550.0000 & {\\bfseries \\hspace{15pt}NA} & {\\fontsize{15}{18.75}\\selectfont \\textcolor[HTML]{0000FF}{five}} & 17:55 & {\\scriptsize 2018-05-05 04:00} & 1325.81 \\\\ \n\\midrule \n\\midrule \n{\\bfseries Grand Total} & {\\cellcolor[HTML]{AAAAAA}{6,030.06}} & {\\cellcolor[HTML]{AAAAAA}{—}} & {\\cellcolor[HTML]{AAAAAA}{—}} & {\\cellcolor[HTML]{AAAAAA}{—}} & {\\cellcolor[HTML]{AAAAAA}{—}} & {\\cellcolor[HTML]{AAAAAA}{66,495.10}} \\\\ \n\\bottomrule\n\\end{tabular*}\n\\begin{minipage}{\\linewidth}\n\\textsuperscript{\\textit{1}}{\\bfseries This is a footnote in the column labels.}\\\\\n\\textsuperscript{\\textit{2}}{\\bfseries This is a footnote. With a second line.}\\\\\n{\\itshape \\fontsize{6}{7.5}\\selectfont NOTES: A mtcars example.\\\\\n}\\end{minipage}\n\\end{table}\n" + [1] "\\begin{table}[!t]\n\\begin{tabular*}{\\linewidth}{@{\\extracolsep{\\fill}}l|rlcrrr}\n\\toprule\n & \\multicolumn{3}{c}{{\\itshape heading}} & & \\multicolumn{2}{c}{heading} \\\\ \n\\cmidrule(lr){2-4} \\cmidrule(lr){6-7}\n{$\\overline{\\mbox{stubhead}}$} & {NUM} & char & fctr\\textsuperscript{\\textit{1}} & time & {DATETIME} & currency \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{7}{l}{grp\\_a} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n{\\cellcolor[HTML]{AA0000}{\\textcolor[HTML]{FFFFFF}{\\hspace*{3.75pt} row\\_1}}} & 0.1111 & apricot & {\\fontsize{15}{18.75}\\selectfont \\textcolor[HTML]{0000FF}{one}} & 13:35 & {\\scriptsize 2018-01-01 02:22} & 49.95 \\\\ \n{\\slshape \\hspace{11.25pt}\\cellcolor[HTML]{AA0000}{\\textcolor[HTML]{FFFFFF}{\\hspace*{3.75pt} row\\_2}}} & 2.2220 & {\\bfseries \\hspace{15pt}banana} & {\\fontsize{15}{18.75}\\selectfont \\textcolor[HTML]{0000FF}{two}} & 14:40 & {\\scriptsize 2018-02-02 14:33} & 17.95 \\\\ \n{\\cellcolor[HTML]{AA0000}{\\textcolor[HTML]{FFFFFF}{\\hspace*{3.75pt} row\\_3}}} & 33.3300 & coconut & {\\fontsize{15}{18.75}\\selectfont \\textcolor[HTML]{0000FF}{three}} & \\textsuperscript{\\textit{2}}{\\fontsize{15}{18.75}\\selectfont \\underline{\\textcolor[HTML]{FF0000}{15:45}}} & {\\scriptsize 2018-03-03 03:44} & 1.39 \\\\ \n{\\slshape \\hspace{11.25pt}\\cellcolor[HTML]{AA0000}{\\textcolor[HTML]{FFFFFF}{\\hspace*{3.75pt} row\\_4}}} & 444.4000 & {\\bfseries \\hspace{15pt}durian} & {\\fontsize{15}{18.75}\\selectfont \\textcolor[HTML]{0000FF}{four}} & {\\fontsize{15}{18.75}\\selectfont \\underline{\\textcolor[HTML]{FF0000}{16:50}}} & {\\scriptsize 2018-04-04 15:55} & 65100.00 \\\\ \n\\midrule \nTotal & {\\cellcolor[HTML]{00FF00}{480.06}} & — & — & — & — & {\\cellcolor[HTML]{00FF00}{65,169.29}} \\\\ \nAvg & 120.02 & — & — & — & — & 16,292.32 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{7}{l}{{\\bfseries \\cellcolor[HTML]{CCCCFF}{grp\\_b}}} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n{\\slshape \\hspace{11.25pt}\\cellcolor[HTML]{AA0000}{\\textcolor[HTML]{FFFFFF}{\\hspace*{3.75pt} row\\_5}}} & 5550.0000 & {\\bfseries \\hspace{15pt}NA} & {\\fontsize{15}{18.75}\\selectfont \\textcolor[HTML]{0000FF}{five}} & 17:55 & {\\scriptsize 2018-05-05 04:00} & 1325.81 \\\\ \n\\midrule \n\\midrule \n{\\bfseries Grand Total} & {\\cellcolor[HTML]{AAAAAA}{6,030.06}} & {\\cellcolor[HTML]{AAAAAA}{—}} & {\\cellcolor[HTML]{AAAAAA}{—}} & {\\cellcolor[HTML]{AAAAAA}{—}} & {\\cellcolor[HTML]{AAAAAA}{—}} & {\\cellcolor[HTML]{AAAAAA}{66,495.10}} \\\\ \n\\bottomrule\n\\end{tabular*}\n\\begin{minipage}{\\linewidth}\n\\textsuperscript{\\textit{1}}{\\bfseries This is a footnote in the column labels.}\\\\\n\\textsuperscript{\\textit{2}}{\\bfseries This is a footnote. With a second line.}\\\\\n{\\itshape \\fontsize{6}{7.5}\\selectfont NOTES: A mtcars example.\\\\\n}\\end{minipage}\n\\end{table}\n" attr(,"class") [1] "knit_asis" attr(,"knit_meta") diff --git a/tests/testthat/_snaps/cols_width.md b/tests/testthat/_snaps/cols_width.md index 897476643b..f6c39bb595 100644 --- a/tests/testthat/_snaps/cols_width.md +++ b/tests/testthat/_snaps/cols_width.md @@ -3,7 +3,7 @@ Code as_latex(gt_tbl) Output - [1] "\\begin{table}[!t]\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{tabular*}{\\linewidth}{@{\\extracolsep{\\fill}}>{\\raggedright\\arraybackslash}p{\\dimexpr 57.00pt -2\\tabcolsep-1.5\\arrayrulewidth}|>{\\raggedleft\\arraybackslash}p{\\dimexpr 57.00pt -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 57.00pt -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 57.00pt -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 57.00pt -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 57.00pt -2\\tabcolsep-1.5\\arrayrulewidth}}\n\\toprule\n & & \\multicolumn{2}{>{\\centering\\arraybackslash}m{\\dimexpr 114.00pt -2\\tabcolsep-1.5\\arrayrulewidth}}{Another long spanner that needs to wrap even more than the other} & & \\\\ \n\\cmidrule(lr){3-4}\n & \\multicolumn{2}{>{\\centering\\arraybackslash}m{\\dimexpr 114.00pt -2\\tabcolsep-1.5\\arrayrulewidth}}{Spanner with a long title that should be wrapped} & & \\multicolumn{2}{>{\\centering\\arraybackslash}m{\\dimexpr 114.00pt -2\\tabcolsep-1.5\\arrayrulewidth}}{Spanner2} \\\\ \n\\cmidrule(lr){2-3} \\cmidrule(lr){5-6}\n & y & z & m & n & w \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{6}{>{\\raggedright\\arraybackslash}m{342pt}}{Only row group label} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\na & 0.114 & 0.640 & 0.694 & 0.837 & 0.317 \\\\ \nb & 0.622 & 0.009 & 0.545 & 0.286 & 0.303 \\\\ \n\\midrule \nmean & 0.3680014 & 0.3249032 & 0.6192831 & 0.5617595 & 0.3096529 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{6}{>{\\raggedright\\arraybackslash}m{342pt}}{\\rule{0pt}{0pt}} \\\\[-3.2ex] \n\\midrule\\addlinespace[2.5pt]\nc & 0.609 & 0.233 & 0.283 & 0.267 & 0.159 \\\\ \nd & 0.623 & 0.666 & 0.923 & 0.187 & 0.040 \\\\ \ne & 0.861 & 0.514 & 0.292 & 0.232 & 0.219 \\\\ \n\\bottomrule\n\\end{tabular*}\n\\end{table}\n" + [1] "\\begin{table}[!t]\n\\begin{tabular*}{\\linewidth}{@{\\extracolsep{\\fill}}>{\\raggedright\\arraybackslash}p{\\dimexpr 57.00pt -2\\tabcolsep-1.5\\arrayrulewidth}|>{\\raggedleft\\arraybackslash}p{\\dimexpr 57.00pt -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 57.00pt -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 57.00pt -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 57.00pt -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 57.00pt -2\\tabcolsep-1.5\\arrayrulewidth}}\n\\toprule\n & & \\multicolumn{2}{>{\\centering\\arraybackslash}m{\\dimexpr 114.00pt -2\\tabcolsep-1.5\\arrayrulewidth}}{Another long spanner that needs to wrap even more than the other} & & \\\\ \n\\cmidrule(lr){3-4}\n & \\multicolumn{2}{>{\\centering\\arraybackslash}m{\\dimexpr 114.00pt -2\\tabcolsep-1.5\\arrayrulewidth}}{Spanner with a long title that should be wrapped} & & \\multicolumn{2}{>{\\centering\\arraybackslash}m{\\dimexpr 114.00pt -2\\tabcolsep-1.5\\arrayrulewidth}}{Spanner2} \\\\ \n\\cmidrule(lr){2-3} \\cmidrule(lr){5-6}\n & y & z & m & n & w \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{6}{>{\\raggedright\\arraybackslash}m{342pt}}{Only row group label} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\na & 0.114 & 0.640 & 0.694 & 0.837 & 0.317 \\\\ \nb & 0.622 & 0.009 & 0.545 & 0.286 & 0.303 \\\\ \n\\midrule \nmean & 0.3680014 & 0.3249032 & 0.6192831 & 0.5617595 & 0.3096529 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{6}{>{\\raggedright\\arraybackslash}m{342pt}}{\\rule{0pt}{0pt}} \\\\[-3.2ex] \n\\midrule\\addlinespace[2.5pt]\nc & 0.609 & 0.233 & 0.283 & 0.267 & 0.159 \\\\ \nd & 0.623 & 0.666 & 0.923 & 0.187 & 0.040 \\\\ \ne & 0.861 & 0.514 & 0.292 & 0.232 & 0.219 \\\\ \n\\bottomrule\n\\end{tabular*}\n\\end{table}\n" attr(,"class") [1] "knit_asis" attr(,"knit_meta") diff --git a/tests/testthat/_snaps/fmt_fraction.md b/tests/testthat/_snaps/fmt_fraction.md index 9e1ac85645..3ce9be6f2a 100644 --- a/tests/testthat/_snaps/fmt_fraction.md +++ b/tests/testthat/_snaps/fmt_fraction.md @@ -1758,21 +1758,21 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{>{\\raggedright\\arraybackslash}p{\\dimexpr 75.00pt -2\\tabcolsep-1.5\\arrayrulewidth}|>{\\raggedleft\\arraybackslash}p{\\dimexpr 75.00pt -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 75.00pt -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 75.00pt -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 75.00pt -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 75.00pt -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 75.00pt -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 75.00pt -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 75.00pt -2\\tabcolsep-1.5\\arrayrulewidth}}\n\\toprule\n & low & med & high & halves & quarters & eighths & sixteenths & hundredths \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{9}{>{\\raggedright\\arraybackslash}m{750pt}}{0 to 1} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n0.0001 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\\\ \n0.0010 & 0 & 0 & \\textsuperscript{1}\\!/\\textsubscript{999} & 0 & 0 & 0 & 0 & 0 \\\\ \n0.0100 & 0 & \\textsuperscript{1}\\!/\\textsubscript{99} & \\textsuperscript{1}\\!/\\textsubscript{100} & 0 & 0 & 0 & 0 & \\textsuperscript{1}\\!/\\textsubscript{100} \\\\ \n0.1000 & \\textsuperscript{1}\\!/\\textsubscript{9} & \\textsuperscript{1}\\!/\\textsubscript{10} & \\textsuperscript{1}\\!/\\textsubscript{10} & 0 & 0 & \\textsuperscript{1}\\!/\\textsubscript{8} & \\textsuperscript{2}\\!/\\textsubscript{16} & \\textsuperscript{10}\\!/\\textsubscript{100} \\\\ \n0.2500 & \\textsuperscript{1}\\!/\\textsubscript{4} & \\textsuperscript{1}\\!/\\textsubscript{4} & \\textsuperscript{1}\\!/\\textsubscript{4} & \\textsuperscript{1}\\!/\\textsubscript{2} & \\textsuperscript{1}\\!/\\textsubscript{4} & \\textsuperscript{2}\\!/\\textsubscript{8} & \\textsuperscript{4}\\!/\\textsubscript{16} & \\textsuperscript{25}\\!/\\textsubscript{100} \\\\ \n0.4000 & \\textsuperscript{2}\\!/\\textsubscript{5} & \\textsuperscript{2}\\!/\\textsubscript{5} & \\textsuperscript{2}\\!/\\textsubscript{5} & \\textsuperscript{1}\\!/\\textsubscript{2} & \\textsuperscript{2}\\!/\\textsubscript{4} & \\textsuperscript{3}\\!/\\textsubscript{8} & \\textsuperscript{6}\\!/\\textsubscript{16} & \\textsuperscript{40}\\!/\\textsubscript{100} \\\\ \n0.5000 & \\textsuperscript{1}\\!/\\textsubscript{2} & \\textsuperscript{1}\\!/\\textsubscript{2} & \\textsuperscript{1}\\!/\\textsubscript{2} & \\textsuperscript{1}\\!/\\textsubscript{2} & \\textsuperscript{2}\\!/\\textsubscript{4} & \\textsuperscript{4}\\!/\\textsubscript{8} & \\textsuperscript{8}\\!/\\textsubscript{16} & \\textsuperscript{50}\\!/\\textsubscript{100} \\\\ \n0.6000 & \\textsuperscript{3}\\!/\\textsubscript{5} & \\textsuperscript{3}\\!/\\textsubscript{5} & \\textsuperscript{3}\\!/\\textsubscript{5} & \\textsuperscript{1}\\!/\\textsubscript{2} & \\textsuperscript{2}\\!/\\textsubscript{4} & \\textsuperscript{5}\\!/\\textsubscript{8} & \\textsuperscript{10}\\!/\\textsubscript{16} & \\textsuperscript{60}\\!/\\textsubscript{100} \\\\ \n0.7500 & \\textsuperscript{3}\\!/\\textsubscript{4} & \\textsuperscript{3}\\!/\\textsubscript{4} & \\textsuperscript{3}\\!/\\textsubscript{4} & 1 & \\textsuperscript{3}\\!/\\textsubscript{4} & \\textsuperscript{6}\\!/\\textsubscript{8} & \\textsuperscript{12}\\!/\\textsubscript{16} & \\textsuperscript{75}\\!/\\textsubscript{100} \\\\ \n0.9000 & \\textsuperscript{8}\\!/\\textsubscript{9} & \\textsuperscript{9}\\!/\\textsubscript{10} & \\textsuperscript{9}\\!/\\textsubscript{10} & 1 & 1 & \\textsuperscript{7}\\!/\\textsubscript{8} & \\textsuperscript{14}\\!/\\textsubscript{16} & \\textsuperscript{90}\\!/\\textsubscript{100} \\\\ \n0.9900 & 1 & \\textsuperscript{98}\\!/\\textsubscript{99} & \\textsuperscript{99}\\!/\\textsubscript{100} & 1 & 1 & 1 & 1 & \\textsuperscript{99}\\!/\\textsubscript{100} \\\\ \n0.9990 & 1 & 1 & \\textsuperscript{998}\\!/\\textsubscript{999} & 1 & 1 & 1 & 1 & 1 \\\\ \n0.9999 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{9}{>{\\raggedright\\arraybackslash}m{750pt}}{0 to -1} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n-0.0001 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\\\ \n-0.0010 & 0 & 0 & -\\textsuperscript{1}\\!/\\textsubscript{999} & 0 & 0 & 0 & 0 & 0 \\\\ \n-0.0100 & 0 & -\\textsuperscript{1}\\!/\\textsubscript{99} & -\\textsuperscript{1}\\!/\\textsubscript{100} & 0 & 0 & 0 & 0 & -\\textsuperscript{1}\\!/\\textsubscript{100} \\\\ \n-0.1000 & -\\textsuperscript{1}\\!/\\textsubscript{9} & -\\textsuperscript{1}\\!/\\textsubscript{10} & -\\textsuperscript{1}\\!/\\textsubscript{10} & 0 & 0 & -\\textsuperscript{1}\\!/\\textsubscript{8} & -\\textsuperscript{2}\\!/\\textsubscript{16} & -\\textsuperscript{10}\\!/\\textsubscript{100} \\\\ \n-0.2500 & -\\textsuperscript{1}\\!/\\textsubscript{4} & -\\textsuperscript{1}\\!/\\textsubscript{4} & -\\textsuperscript{1}\\!/\\textsubscript{4} & -\\textsuperscript{1}\\!/\\textsubscript{2} & -\\textsuperscript{1}\\!/\\textsubscript{4} & -\\textsuperscript{2}\\!/\\textsubscript{8} & -\\textsuperscript{4}\\!/\\textsubscript{16} & -\\textsuperscript{25}\\!/\\textsubscript{100} \\\\ \n-0.4000 & -\\textsuperscript{2}\\!/\\textsubscript{5} & -\\textsuperscript{2}\\!/\\textsubscript{5} & -\\textsuperscript{2}\\!/\\textsubscript{5} & -\\textsuperscript{1}\\!/\\textsubscript{2} & -\\textsuperscript{2}\\!/\\textsubscript{4} & -\\textsuperscript{3}\\!/\\textsubscript{8} & -\\textsuperscript{6}\\!/\\textsubscript{16} & -\\textsuperscript{40}\\!/\\textsubscript{100} \\\\ \n-0.5000 & -\\textsuperscript{1}\\!/\\textsubscript{2} & -\\textsuperscript{1}\\!/\\textsubscript{2} & -\\textsuperscript{1}\\!/\\textsubscript{2} & -\\textsuperscript{1}\\!/\\textsubscript{2} & -\\textsuperscript{2}\\!/\\textsubscript{4} & -\\textsuperscript{4}\\!/\\textsubscript{8} & -\\textsuperscript{8}\\!/\\textsubscript{16} & -\\textsuperscript{50}\\!/\\textsubscript{100} \\\\ \n-0.6000 & -\\textsuperscript{3}\\!/\\textsubscript{5} & -\\textsuperscript{3}\\!/\\textsubscript{5} & -\\textsuperscript{3}\\!/\\textsubscript{5} & -\\textsuperscript{1}\\!/\\textsubscript{2} & -\\textsuperscript{2}\\!/\\textsubscript{4} & -\\textsuperscript{5}\\!/\\textsubscript{8} & -\\textsuperscript{10}\\!/\\textsubscript{16} & -\\textsuperscript{60}\\!/\\textsubscript{100} \\\\ \n-0.7500 & -\\textsuperscript{3}\\!/\\textsubscript{4} & -\\textsuperscript{3}\\!/\\textsubscript{4} & -\\textsuperscript{3}\\!/\\textsubscript{4} & -1 & -\\textsuperscript{3}\\!/\\textsubscript{4} & -\\textsuperscript{6}\\!/\\textsubscript{8} & -\\textsuperscript{12}\\!/\\textsubscript{16} & -\\textsuperscript{75}\\!/\\textsubscript{100} \\\\ \n-0.9000 & -\\textsuperscript{8}\\!/\\textsubscript{9} & -\\textsuperscript{9}\\!/\\textsubscript{10} & -\\textsuperscript{9}\\!/\\textsubscript{10} & -1 & -1 & -\\textsuperscript{7}\\!/\\textsubscript{8} & -\\textsuperscript{14}\\!/\\textsubscript{16} & -\\textsuperscript{90}\\!/\\textsubscript{100} \\\\ \n-0.9900 & -1 & -\\textsuperscript{98}\\!/\\textsubscript{99} & -\\textsuperscript{99}\\!/\\textsubscript{100} & -1 & -1 & -1 & -1 & -\\textsuperscript{99}\\!/\\textsubscript{100} \\\\ \n-0.9990 & -1 & -1 & -\\textsuperscript{998}\\!/\\textsubscript{999} & -1 & -1 & -1 & -1 & -1 \\\\ \n-0.9999 & -1 & -1 & -1 & -1 & -1 & -1 & -1 & -1 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{9}{>{\\raggedright\\arraybackslash}m{750pt}}{1 to 2} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n1.0001 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 \\\\ \n1.0010 & 1 & 1 & 1\\textsuperscript{1}\\!/\\textsubscript{999} & 1 & 1 & 1 & 1 & 1 \\\\ \n1.0100 & 1 & 1\\textsuperscript{1}\\!/\\textsubscript{99} & 1\\textsuperscript{1}\\!/\\textsubscript{100} & 1 & 1 & 1 & 1 & 1\\textsuperscript{1}\\!/\\textsubscript{100} \\\\ \n1.1000 & 1\\textsuperscript{1}\\!/\\textsubscript{9} & 1\\textsuperscript{1}\\!/\\textsubscript{10} & 1\\textsuperscript{1}\\!/\\textsubscript{10} & 1 & 1 & 1\\textsuperscript{1}\\!/\\textsubscript{8} & 1\\textsuperscript{2}\\!/\\textsubscript{16} & 1\\textsuperscript{10}\\!/\\textsubscript{100} \\\\ \n1.2500 & 1\\textsuperscript{1}\\!/\\textsubscript{4} & 1\\textsuperscript{1}\\!/\\textsubscript{4} & 1\\textsuperscript{1}\\!/\\textsubscript{4} & 1\\textsuperscript{1}\\!/\\textsubscript{2} & 1\\textsuperscript{1}\\!/\\textsubscript{4} & 1\\textsuperscript{2}\\!/\\textsubscript{8} & 1\\textsuperscript{4}\\!/\\textsubscript{16} & 1\\textsuperscript{25}\\!/\\textsubscript{100} \\\\ \n1.4000 & 1\\textsuperscript{2}\\!/\\textsubscript{5} & 1\\textsuperscript{2}\\!/\\textsubscript{5} & 1\\textsuperscript{2}\\!/\\textsubscript{5} & 1\\textsuperscript{1}\\!/\\textsubscript{2} & 1\\textsuperscript{2}\\!/\\textsubscript{4} & 1\\textsuperscript{3}\\!/\\textsubscript{8} & 1\\textsuperscript{6}\\!/\\textsubscript{16} & 1\\textsuperscript{40}\\!/\\textsubscript{100} \\\\ \n1.5000 & 1\\textsuperscript{1}\\!/\\textsubscript{2} & 1\\textsuperscript{1}\\!/\\textsubscript{2} & 1\\textsuperscript{1}\\!/\\textsubscript{2} & 1\\textsuperscript{1}\\!/\\textsubscript{2} & 1\\textsuperscript{2}\\!/\\textsubscript{4} & 1\\textsuperscript{4}\\!/\\textsubscript{8} & 1\\textsuperscript{8}\\!/\\textsubscript{16} & 1\\textsuperscript{50}\\!/\\textsubscript{100} \\\\ \n1.6000 & 1\\textsuperscript{3}\\!/\\textsubscript{5} & 1\\textsuperscript{3}\\!/\\textsubscript{5} & 1\\textsuperscript{3}\\!/\\textsubscript{5} & 1\\textsuperscript{1}\\!/\\textsubscript{2} & 1\\textsuperscript{2}\\!/\\textsubscript{4} & 1\\textsuperscript{5}\\!/\\textsubscript{8} & 1\\textsuperscript{10}\\!/\\textsubscript{16} & 1\\textsuperscript{60}\\!/\\textsubscript{100} \\\\ \n1.7500 & 1\\textsuperscript{3}\\!/\\textsubscript{4} & 1\\textsuperscript{3}\\!/\\textsubscript{4} & 1\\textsuperscript{3}\\!/\\textsubscript{4} & 2 & 1\\textsuperscript{3}\\!/\\textsubscript{4} & 1\\textsuperscript{6}\\!/\\textsubscript{8} & 1\\textsuperscript{12}\\!/\\textsubscript{16} & 1\\textsuperscript{75}\\!/\\textsubscript{100} \\\\ \n1.9000 & 1\\textsuperscript{8}\\!/\\textsubscript{9} & 1\\textsuperscript{9}\\!/\\textsubscript{10} & 1\\textsuperscript{9}\\!/\\textsubscript{10} & 2 & 2 & 1\\textsuperscript{7}\\!/\\textsubscript{8} & 1\\textsuperscript{14}\\!/\\textsubscript{16} & 1\\textsuperscript{90}\\!/\\textsubscript{100} \\\\ \n1.9900 & 2 & 1\\textsuperscript{98}\\!/\\textsubscript{99} & 1\\textsuperscript{99}\\!/\\textsubscript{100} & 2 & 2 & 2 & 2 & 1\\textsuperscript{99}\\!/\\textsubscript{100} \\\\ \n1.9990 & 2 & 2 & 1\\textsuperscript{998}\\!/\\textsubscript{999} & 2 & 2 & 2 & 2 & 2 \\\\ \n1.9999 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{9}{>{\\raggedright\\arraybackslash}m{750pt}}{-1 to -2} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n-1.0001 & -1 & -1 & -1 & -1 & -1 & -1 & -1 & -1 \\\\ \n-1.0010 & -1 & -1 & -1\\textsuperscript{1}\\!/\\textsubscript{999} & -1 & -1 & -1 & -1 & -1 \\\\ \n-1.0100 & -1 & -1\\textsuperscript{1}\\!/\\textsubscript{99} & -1\\textsuperscript{1}\\!/\\textsubscript{100} & -1 & -1 & -1 & -1 & -1\\textsuperscript{1}\\!/\\textsubscript{100} \\\\ \n-1.1000 & -1\\textsuperscript{1}\\!/\\textsubscript{9} & -1\\textsuperscript{1}\\!/\\textsubscript{10} & -1\\textsuperscript{1}\\!/\\textsubscript{10} & -1 & -1 & -1\\textsuperscript{1}\\!/\\textsubscript{8} & -1\\textsuperscript{2}\\!/\\textsubscript{16} & -1\\textsuperscript{10}\\!/\\textsubscript{100} \\\\ \n-1.2500 & -1\\textsuperscript{1}\\!/\\textsubscript{4} & -1\\textsuperscript{1}\\!/\\textsubscript{4} & -1\\textsuperscript{1}\\!/\\textsubscript{4} & -1\\textsuperscript{1}\\!/\\textsubscript{2} & -1\\textsuperscript{1}\\!/\\textsubscript{4} & -1\\textsuperscript{2}\\!/\\textsubscript{8} & -1\\textsuperscript{4}\\!/\\textsubscript{16} & -1\\textsuperscript{25}\\!/\\textsubscript{100} \\\\ \n-1.4000 & -1\\textsuperscript{2}\\!/\\textsubscript{5} & -1\\textsuperscript{2}\\!/\\textsubscript{5} & -1\\textsuperscript{2}\\!/\\textsubscript{5} & -1\\textsuperscript{1}\\!/\\textsubscript{2} & -1\\textsuperscript{2}\\!/\\textsubscript{4} & -1\\textsuperscript{3}\\!/\\textsubscript{8} & -1\\textsuperscript{6}\\!/\\textsubscript{16} & -1\\textsuperscript{40}\\!/\\textsubscript{100} \\\\ \n-1.5000 & -1\\textsuperscript{1}\\!/\\textsubscript{2} & -1\\textsuperscript{1}\\!/\\textsubscript{2} & -1\\textsuperscript{1}\\!/\\textsubscript{2} & -1\\textsuperscript{1}\\!/\\textsubscript{2} & -1\\textsuperscript{2}\\!/\\textsubscript{4} & -1\\textsuperscript{4}\\!/\\textsubscript{8} & -1\\textsuperscript{8}\\!/\\textsubscript{16} & -1\\textsuperscript{50}\\!/\\textsubscript{100} \\\\ \n-1.6000 & -1\\textsuperscript{3}\\!/\\textsubscript{5} & -1\\textsuperscript{3}\\!/\\textsubscript{5} & -1\\textsuperscript{3}\\!/\\textsubscript{5} & -1\\textsuperscript{1}\\!/\\textsubscript{2} & -1\\textsuperscript{2}\\!/\\textsubscript{4} & -1\\textsuperscript{5}\\!/\\textsubscript{8} & -1\\textsuperscript{10}\\!/\\textsubscript{16} & -1\\textsuperscript{60}\\!/\\textsubscript{100} \\\\ \n-1.7500 & -1\\textsuperscript{3}\\!/\\textsubscript{4} & -1\\textsuperscript{3}\\!/\\textsubscript{4} & -1\\textsuperscript{3}\\!/\\textsubscript{4} & -2 & -1\\textsuperscript{3}\\!/\\textsubscript{4} & -1\\textsuperscript{6}\\!/\\textsubscript{8} & -1\\textsuperscript{12}\\!/\\textsubscript{16} & -1\\textsuperscript{75}\\!/\\textsubscript{100} \\\\ \n-1.9000 & -1\\textsuperscript{8}\\!/\\textsubscript{9} & -1\\textsuperscript{9}\\!/\\textsubscript{10} & -1\\textsuperscript{9}\\!/\\textsubscript{10} & -2 & -2 & -1\\textsuperscript{7}\\!/\\textsubscript{8} & -1\\textsuperscript{14}\\!/\\textsubscript{16} & -1\\textsuperscript{90}\\!/\\textsubscript{100} \\\\ \n-1.9900 & -2 & -1\\textsuperscript{98}\\!/\\textsubscript{99} & -1\\textsuperscript{99}\\!/\\textsubscript{100} & -2 & -2 & -2 & -2 & -1\\textsuperscript{99}\\!/\\textsubscript{100} \\\\ \n-1.9990 & -2 & -2 & -1\\textsuperscript{998}\\!/\\textsubscript{999} & -2 & -2 & -2 & -2 & -2 \\\\ \n-1.9999 & -2 & -2 & -2 & -2 & -2 & -2 & -2 & -2 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{9}{>{\\raggedright\\arraybackslash}m{750pt}}{Exact Numbers} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n-1.0000 & -1 & -1 & -1 & -1 & -1 & -1 & -1 & -1 \\\\ \n0.0000 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\\\ \n1.0000 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{9}{>{\\raggedright\\arraybackslash}m{750pt}}{Not Numbers} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\nNA & NA & NA & NA & NA & NA & NA & NA & NA \\\\ \nNaN & NaN & NaN & NaN & NaN & NaN & NaN & NaN & NaN \\\\ \nInf & Inf & Inf & Inf & Inf & Inf & Inf & Inf & Inf \\\\ \n-Inf & -Inf & -Inf & -Inf & -Inf & -Inf & -Inf & -Inf & -Inf \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{>{\\raggedright\\arraybackslash}p{\\dimexpr 75.00pt -2\\tabcolsep-1.5\\arrayrulewidth}|>{\\raggedleft\\arraybackslash}p{\\dimexpr 75.00pt -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 75.00pt -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 75.00pt -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 75.00pt -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 75.00pt -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 75.00pt -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 75.00pt -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 75.00pt -2\\tabcolsep-1.5\\arrayrulewidth}}\n\\toprule\n & low & med & high & halves & quarters & eighths & sixteenths & hundredths \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{9}{>{\\raggedright\\arraybackslash}m{750pt}}{0 to 1} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n0.0001 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\\\ \n0.0010 & 0 & 0 & \\textsuperscript{1}\\!/\\textsubscript{999} & 0 & 0 & 0 & 0 & 0 \\\\ \n0.0100 & 0 & \\textsuperscript{1}\\!/\\textsubscript{99} & \\textsuperscript{1}\\!/\\textsubscript{100} & 0 & 0 & 0 & 0 & \\textsuperscript{1}\\!/\\textsubscript{100} \\\\ \n0.1000 & \\textsuperscript{1}\\!/\\textsubscript{9} & \\textsuperscript{1}\\!/\\textsubscript{10} & \\textsuperscript{1}\\!/\\textsubscript{10} & 0 & 0 & \\textsuperscript{1}\\!/\\textsubscript{8} & \\textsuperscript{2}\\!/\\textsubscript{16} & \\textsuperscript{10}\\!/\\textsubscript{100} \\\\ \n0.2500 & \\textsuperscript{1}\\!/\\textsubscript{4} & \\textsuperscript{1}\\!/\\textsubscript{4} & \\textsuperscript{1}\\!/\\textsubscript{4} & \\textsuperscript{1}\\!/\\textsubscript{2} & \\textsuperscript{1}\\!/\\textsubscript{4} & \\textsuperscript{2}\\!/\\textsubscript{8} & \\textsuperscript{4}\\!/\\textsubscript{16} & \\textsuperscript{25}\\!/\\textsubscript{100} \\\\ \n0.4000 & \\textsuperscript{2}\\!/\\textsubscript{5} & \\textsuperscript{2}\\!/\\textsubscript{5} & \\textsuperscript{2}\\!/\\textsubscript{5} & \\textsuperscript{1}\\!/\\textsubscript{2} & \\textsuperscript{2}\\!/\\textsubscript{4} & \\textsuperscript{3}\\!/\\textsubscript{8} & \\textsuperscript{6}\\!/\\textsubscript{16} & \\textsuperscript{40}\\!/\\textsubscript{100} \\\\ \n0.5000 & \\textsuperscript{1}\\!/\\textsubscript{2} & \\textsuperscript{1}\\!/\\textsubscript{2} & \\textsuperscript{1}\\!/\\textsubscript{2} & \\textsuperscript{1}\\!/\\textsubscript{2} & \\textsuperscript{2}\\!/\\textsubscript{4} & \\textsuperscript{4}\\!/\\textsubscript{8} & \\textsuperscript{8}\\!/\\textsubscript{16} & \\textsuperscript{50}\\!/\\textsubscript{100} \\\\ \n0.6000 & \\textsuperscript{3}\\!/\\textsubscript{5} & \\textsuperscript{3}\\!/\\textsubscript{5} & \\textsuperscript{3}\\!/\\textsubscript{5} & \\textsuperscript{1}\\!/\\textsubscript{2} & \\textsuperscript{2}\\!/\\textsubscript{4} & \\textsuperscript{5}\\!/\\textsubscript{8} & \\textsuperscript{10}\\!/\\textsubscript{16} & \\textsuperscript{60}\\!/\\textsubscript{100} \\\\ \n0.7500 & \\textsuperscript{3}\\!/\\textsubscript{4} & \\textsuperscript{3}\\!/\\textsubscript{4} & \\textsuperscript{3}\\!/\\textsubscript{4} & 1 & \\textsuperscript{3}\\!/\\textsubscript{4} & \\textsuperscript{6}\\!/\\textsubscript{8} & \\textsuperscript{12}\\!/\\textsubscript{16} & \\textsuperscript{75}\\!/\\textsubscript{100} \\\\ \n0.9000 & \\textsuperscript{8}\\!/\\textsubscript{9} & \\textsuperscript{9}\\!/\\textsubscript{10} & \\textsuperscript{9}\\!/\\textsubscript{10} & 1 & 1 & \\textsuperscript{7}\\!/\\textsubscript{8} & \\textsuperscript{14}\\!/\\textsubscript{16} & \\textsuperscript{90}\\!/\\textsubscript{100} \\\\ \n0.9900 & 1 & \\textsuperscript{98}\\!/\\textsubscript{99} & \\textsuperscript{99}\\!/\\textsubscript{100} & 1 & 1 & 1 & 1 & \\textsuperscript{99}\\!/\\textsubscript{100} \\\\ \n0.9990 & 1 & 1 & \\textsuperscript{998}\\!/\\textsubscript{999} & 1 & 1 & 1 & 1 & 1 \\\\ \n0.9999 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{9}{>{\\raggedright\\arraybackslash}m{750pt}}{0 to -1} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n-0.0001 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\\\ \n-0.0010 & 0 & 0 & -\\textsuperscript{1}\\!/\\textsubscript{999} & 0 & 0 & 0 & 0 & 0 \\\\ \n-0.0100 & 0 & -\\textsuperscript{1}\\!/\\textsubscript{99} & -\\textsuperscript{1}\\!/\\textsubscript{100} & 0 & 0 & 0 & 0 & -\\textsuperscript{1}\\!/\\textsubscript{100} \\\\ \n-0.1000 & -\\textsuperscript{1}\\!/\\textsubscript{9} & -\\textsuperscript{1}\\!/\\textsubscript{10} & -\\textsuperscript{1}\\!/\\textsubscript{10} & 0 & 0 & -\\textsuperscript{1}\\!/\\textsubscript{8} & -\\textsuperscript{2}\\!/\\textsubscript{16} & -\\textsuperscript{10}\\!/\\textsubscript{100} \\\\ \n-0.2500 & -\\textsuperscript{1}\\!/\\textsubscript{4} & -\\textsuperscript{1}\\!/\\textsubscript{4} & -\\textsuperscript{1}\\!/\\textsubscript{4} & -\\textsuperscript{1}\\!/\\textsubscript{2} & -\\textsuperscript{1}\\!/\\textsubscript{4} & -\\textsuperscript{2}\\!/\\textsubscript{8} & -\\textsuperscript{4}\\!/\\textsubscript{16} & -\\textsuperscript{25}\\!/\\textsubscript{100} \\\\ \n-0.4000 & -\\textsuperscript{2}\\!/\\textsubscript{5} & -\\textsuperscript{2}\\!/\\textsubscript{5} & -\\textsuperscript{2}\\!/\\textsubscript{5} & -\\textsuperscript{1}\\!/\\textsubscript{2} & -\\textsuperscript{2}\\!/\\textsubscript{4} & -\\textsuperscript{3}\\!/\\textsubscript{8} & -\\textsuperscript{6}\\!/\\textsubscript{16} & -\\textsuperscript{40}\\!/\\textsubscript{100} \\\\ \n-0.5000 & -\\textsuperscript{1}\\!/\\textsubscript{2} & -\\textsuperscript{1}\\!/\\textsubscript{2} & -\\textsuperscript{1}\\!/\\textsubscript{2} & -\\textsuperscript{1}\\!/\\textsubscript{2} & -\\textsuperscript{2}\\!/\\textsubscript{4} & -\\textsuperscript{4}\\!/\\textsubscript{8} & -\\textsuperscript{8}\\!/\\textsubscript{16} & -\\textsuperscript{50}\\!/\\textsubscript{100} \\\\ \n-0.6000 & -\\textsuperscript{3}\\!/\\textsubscript{5} & -\\textsuperscript{3}\\!/\\textsubscript{5} & -\\textsuperscript{3}\\!/\\textsubscript{5} & -\\textsuperscript{1}\\!/\\textsubscript{2} & -\\textsuperscript{2}\\!/\\textsubscript{4} & -\\textsuperscript{5}\\!/\\textsubscript{8} & -\\textsuperscript{10}\\!/\\textsubscript{16} & -\\textsuperscript{60}\\!/\\textsubscript{100} \\\\ \n-0.7500 & -\\textsuperscript{3}\\!/\\textsubscript{4} & -\\textsuperscript{3}\\!/\\textsubscript{4} & -\\textsuperscript{3}\\!/\\textsubscript{4} & -1 & -\\textsuperscript{3}\\!/\\textsubscript{4} & -\\textsuperscript{6}\\!/\\textsubscript{8} & -\\textsuperscript{12}\\!/\\textsubscript{16} & -\\textsuperscript{75}\\!/\\textsubscript{100} \\\\ \n-0.9000 & -\\textsuperscript{8}\\!/\\textsubscript{9} & -\\textsuperscript{9}\\!/\\textsubscript{10} & -\\textsuperscript{9}\\!/\\textsubscript{10} & -1 & -1 & -\\textsuperscript{7}\\!/\\textsubscript{8} & -\\textsuperscript{14}\\!/\\textsubscript{16} & -\\textsuperscript{90}\\!/\\textsubscript{100} \\\\ \n-0.9900 & -1 & -\\textsuperscript{98}\\!/\\textsubscript{99} & -\\textsuperscript{99}\\!/\\textsubscript{100} & -1 & -1 & -1 & -1 & -\\textsuperscript{99}\\!/\\textsubscript{100} \\\\ \n-0.9990 & -1 & -1 & -\\textsuperscript{998}\\!/\\textsubscript{999} & -1 & -1 & -1 & -1 & -1 \\\\ \n-0.9999 & -1 & -1 & -1 & -1 & -1 & -1 & -1 & -1 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{9}{>{\\raggedright\\arraybackslash}m{750pt}}{1 to 2} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n1.0001 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 \\\\ \n1.0010 & 1 & 1 & 1\\textsuperscript{1}\\!/\\textsubscript{999} & 1 & 1 & 1 & 1 & 1 \\\\ \n1.0100 & 1 & 1\\textsuperscript{1}\\!/\\textsubscript{99} & 1\\textsuperscript{1}\\!/\\textsubscript{100} & 1 & 1 & 1 & 1 & 1\\textsuperscript{1}\\!/\\textsubscript{100} \\\\ \n1.1000 & 1\\textsuperscript{1}\\!/\\textsubscript{9} & 1\\textsuperscript{1}\\!/\\textsubscript{10} & 1\\textsuperscript{1}\\!/\\textsubscript{10} & 1 & 1 & 1\\textsuperscript{1}\\!/\\textsubscript{8} & 1\\textsuperscript{2}\\!/\\textsubscript{16} & 1\\textsuperscript{10}\\!/\\textsubscript{100} \\\\ \n1.2500 & 1\\textsuperscript{1}\\!/\\textsubscript{4} & 1\\textsuperscript{1}\\!/\\textsubscript{4} & 1\\textsuperscript{1}\\!/\\textsubscript{4} & 1\\textsuperscript{1}\\!/\\textsubscript{2} & 1\\textsuperscript{1}\\!/\\textsubscript{4} & 1\\textsuperscript{2}\\!/\\textsubscript{8} & 1\\textsuperscript{4}\\!/\\textsubscript{16} & 1\\textsuperscript{25}\\!/\\textsubscript{100} \\\\ \n1.4000 & 1\\textsuperscript{2}\\!/\\textsubscript{5} & 1\\textsuperscript{2}\\!/\\textsubscript{5} & 1\\textsuperscript{2}\\!/\\textsubscript{5} & 1\\textsuperscript{1}\\!/\\textsubscript{2} & 1\\textsuperscript{2}\\!/\\textsubscript{4} & 1\\textsuperscript{3}\\!/\\textsubscript{8} & 1\\textsuperscript{6}\\!/\\textsubscript{16} & 1\\textsuperscript{40}\\!/\\textsubscript{100} \\\\ \n1.5000 & 1\\textsuperscript{1}\\!/\\textsubscript{2} & 1\\textsuperscript{1}\\!/\\textsubscript{2} & 1\\textsuperscript{1}\\!/\\textsubscript{2} & 1\\textsuperscript{1}\\!/\\textsubscript{2} & 1\\textsuperscript{2}\\!/\\textsubscript{4} & 1\\textsuperscript{4}\\!/\\textsubscript{8} & 1\\textsuperscript{8}\\!/\\textsubscript{16} & 1\\textsuperscript{50}\\!/\\textsubscript{100} \\\\ \n1.6000 & 1\\textsuperscript{3}\\!/\\textsubscript{5} & 1\\textsuperscript{3}\\!/\\textsubscript{5} & 1\\textsuperscript{3}\\!/\\textsubscript{5} & 1\\textsuperscript{1}\\!/\\textsubscript{2} & 1\\textsuperscript{2}\\!/\\textsubscript{4} & 1\\textsuperscript{5}\\!/\\textsubscript{8} & 1\\textsuperscript{10}\\!/\\textsubscript{16} & 1\\textsuperscript{60}\\!/\\textsubscript{100} \\\\ \n1.7500 & 1\\textsuperscript{3}\\!/\\textsubscript{4} & 1\\textsuperscript{3}\\!/\\textsubscript{4} & 1\\textsuperscript{3}\\!/\\textsubscript{4} & 2 & 1\\textsuperscript{3}\\!/\\textsubscript{4} & 1\\textsuperscript{6}\\!/\\textsubscript{8} & 1\\textsuperscript{12}\\!/\\textsubscript{16} & 1\\textsuperscript{75}\\!/\\textsubscript{100} \\\\ \n1.9000 & 1\\textsuperscript{8}\\!/\\textsubscript{9} & 1\\textsuperscript{9}\\!/\\textsubscript{10} & 1\\textsuperscript{9}\\!/\\textsubscript{10} & 2 & 2 & 1\\textsuperscript{7}\\!/\\textsubscript{8} & 1\\textsuperscript{14}\\!/\\textsubscript{16} & 1\\textsuperscript{90}\\!/\\textsubscript{100} \\\\ \n1.9900 & 2 & 1\\textsuperscript{98}\\!/\\textsubscript{99} & 1\\textsuperscript{99}\\!/\\textsubscript{100} & 2 & 2 & 2 & 2 & 1\\textsuperscript{99}\\!/\\textsubscript{100} \\\\ \n1.9990 & 2 & 2 & 1\\textsuperscript{998}\\!/\\textsubscript{999} & 2 & 2 & 2 & 2 & 2 \\\\ \n1.9999 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{9}{>{\\raggedright\\arraybackslash}m{750pt}}{-1 to -2} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n-1.0001 & -1 & -1 & -1 & -1 & -1 & -1 & -1 & -1 \\\\ \n-1.0010 & -1 & -1 & -1\\textsuperscript{1}\\!/\\textsubscript{999} & -1 & -1 & -1 & -1 & -1 \\\\ \n-1.0100 & -1 & -1\\textsuperscript{1}\\!/\\textsubscript{99} & -1\\textsuperscript{1}\\!/\\textsubscript{100} & -1 & -1 & -1 & -1 & -1\\textsuperscript{1}\\!/\\textsubscript{100} \\\\ \n-1.1000 & -1\\textsuperscript{1}\\!/\\textsubscript{9} & -1\\textsuperscript{1}\\!/\\textsubscript{10} & -1\\textsuperscript{1}\\!/\\textsubscript{10} & -1 & -1 & -1\\textsuperscript{1}\\!/\\textsubscript{8} & -1\\textsuperscript{2}\\!/\\textsubscript{16} & -1\\textsuperscript{10}\\!/\\textsubscript{100} \\\\ \n-1.2500 & -1\\textsuperscript{1}\\!/\\textsubscript{4} & -1\\textsuperscript{1}\\!/\\textsubscript{4} & -1\\textsuperscript{1}\\!/\\textsubscript{4} & -1\\textsuperscript{1}\\!/\\textsubscript{2} & -1\\textsuperscript{1}\\!/\\textsubscript{4} & -1\\textsuperscript{2}\\!/\\textsubscript{8} & -1\\textsuperscript{4}\\!/\\textsubscript{16} & -1\\textsuperscript{25}\\!/\\textsubscript{100} \\\\ \n-1.4000 & -1\\textsuperscript{2}\\!/\\textsubscript{5} & -1\\textsuperscript{2}\\!/\\textsubscript{5} & -1\\textsuperscript{2}\\!/\\textsubscript{5} & -1\\textsuperscript{1}\\!/\\textsubscript{2} & -1\\textsuperscript{2}\\!/\\textsubscript{4} & -1\\textsuperscript{3}\\!/\\textsubscript{8} & -1\\textsuperscript{6}\\!/\\textsubscript{16} & -1\\textsuperscript{40}\\!/\\textsubscript{100} \\\\ \n-1.5000 & -1\\textsuperscript{1}\\!/\\textsubscript{2} & -1\\textsuperscript{1}\\!/\\textsubscript{2} & -1\\textsuperscript{1}\\!/\\textsubscript{2} & -1\\textsuperscript{1}\\!/\\textsubscript{2} & -1\\textsuperscript{2}\\!/\\textsubscript{4} & -1\\textsuperscript{4}\\!/\\textsubscript{8} & -1\\textsuperscript{8}\\!/\\textsubscript{16} & -1\\textsuperscript{50}\\!/\\textsubscript{100} \\\\ \n-1.6000 & -1\\textsuperscript{3}\\!/\\textsubscript{5} & -1\\textsuperscript{3}\\!/\\textsubscript{5} & -1\\textsuperscript{3}\\!/\\textsubscript{5} & -1\\textsuperscript{1}\\!/\\textsubscript{2} & -1\\textsuperscript{2}\\!/\\textsubscript{4} & -1\\textsuperscript{5}\\!/\\textsubscript{8} & -1\\textsuperscript{10}\\!/\\textsubscript{16} & -1\\textsuperscript{60}\\!/\\textsubscript{100} \\\\ \n-1.7500 & -1\\textsuperscript{3}\\!/\\textsubscript{4} & -1\\textsuperscript{3}\\!/\\textsubscript{4} & -1\\textsuperscript{3}\\!/\\textsubscript{4} & -2 & -1\\textsuperscript{3}\\!/\\textsubscript{4} & -1\\textsuperscript{6}\\!/\\textsubscript{8} & -1\\textsuperscript{12}\\!/\\textsubscript{16} & -1\\textsuperscript{75}\\!/\\textsubscript{100} \\\\ \n-1.9000 & -1\\textsuperscript{8}\\!/\\textsubscript{9} & -1\\textsuperscript{9}\\!/\\textsubscript{10} & -1\\textsuperscript{9}\\!/\\textsubscript{10} & -2 & -2 & -1\\textsuperscript{7}\\!/\\textsubscript{8} & -1\\textsuperscript{14}\\!/\\textsubscript{16} & -1\\textsuperscript{90}\\!/\\textsubscript{100} \\\\ \n-1.9900 & -2 & -1\\textsuperscript{98}\\!/\\textsubscript{99} & -1\\textsuperscript{99}\\!/\\textsubscript{100} & -2 & -2 & -2 & -2 & -1\\textsuperscript{99}\\!/\\textsubscript{100} \\\\ \n-1.9990 & -2 & -2 & -1\\textsuperscript{998}\\!/\\textsubscript{999} & -2 & -2 & -2 & -2 & -2 \\\\ \n-1.9999 & -2 & -2 & -2 & -2 & -2 & -2 & -2 & -2 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{9}{>{\\raggedright\\arraybackslash}m{750pt}}{Exact Numbers} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n-1.0000 & -1 & -1 & -1 & -1 & -1 & -1 & -1 & -1 \\\\ \n0.0000 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\\\ \n1.0000 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{9}{>{\\raggedright\\arraybackslash}m{750pt}}{Not Numbers} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\nNA & NA & NA & NA & NA & NA & NA & NA & NA \\\\ \nNaN & NaN & NaN & NaN & NaN & NaN & NaN & NaN & NaN \\\\ \nInf & Inf & Inf & Inf & Inf & Inf & Inf & Inf & Inf \\\\ \n-Inf & -Inf & -Inf & -Inf & -Inf & -Inf & -Inf & -Inf & -Inf \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" --- Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{>{\\raggedright\\arraybackslash}p{\\dimexpr 75.00pt -2\\tabcolsep-1.5\\arrayrulewidth}|>{\\raggedleft\\arraybackslash}p{\\dimexpr 75.00pt -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 75.00pt -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 75.00pt -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 75.00pt -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 75.00pt -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 75.00pt -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 75.00pt -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 75.00pt -2\\tabcolsep-1.5\\arrayrulewidth}}\n\\toprule\n & low & med & high & halves & quarters & eighths & sixteenths & hundredths \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{9}{>{\\raggedright\\arraybackslash}m{750pt}}{0 to 1} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n0.0001 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\\\ \n0.0010 & 0 & 0 & 1/999 & 0 & 0 & 0 & 0 & 0 \\\\ \n0.0100 & 0 & 1/99 & 1/100 & 0 & 0 & 0 & 0 & 1/100 \\\\ \n0.1000 & 1/9 & 1/10 & 1/10 & 0 & 0 & 1/8 & 2/16 & 10/100 \\\\ \n0.2500 & 1/4 & 1/4 & 1/4 & 1/2 & 1/4 & 2/8 & 4/16 & 25/100 \\\\ \n0.4000 & 2/5 & 2/5 & 2/5 & 1/2 & 2/4 & 3/8 & 6/16 & 40/100 \\\\ \n0.5000 & 1/2 & 1/2 & 1/2 & 1/2 & 2/4 & 4/8 & 8/16 & 50/100 \\\\ \n0.6000 & 3/5 & 3/5 & 3/5 & 1/2 & 2/4 & 5/8 & 10/16 & 60/100 \\\\ \n0.7500 & 3/4 & 3/4 & 3/4 & 1 & 3/4 & 6/8 & 12/16 & 75/100 \\\\ \n0.9000 & 8/9 & 9/10 & 9/10 & 1 & 1 & 7/8 & 14/16 & 90/100 \\\\ \n0.9900 & 1 & 98/99 & 99/100 & 1 & 1 & 1 & 1 & 99/100 \\\\ \n0.9990 & 1 & 1 & 998/999 & 1 & 1 & 1 & 1 & 1 \\\\ \n0.9999 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{9}{>{\\raggedright\\arraybackslash}m{750pt}}{0 to -1} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n-0.0001 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\\\ \n-0.0010 & 0 & 0 & -1/999 & 0 & 0 & 0 & 0 & 0 \\\\ \n-0.0100 & 0 & -1/99 & -1/100 & 0 & 0 & 0 & 0 & -1/100 \\\\ \n-0.1000 & -1/9 & -1/10 & -1/10 & 0 & 0 & -1/8 & -2/16 & -10/100 \\\\ \n-0.2500 & -1/4 & -1/4 & -1/4 & -1/2 & -1/4 & -2/8 & -4/16 & -25/100 \\\\ \n-0.4000 & -2/5 & -2/5 & -2/5 & -1/2 & -2/4 & -3/8 & -6/16 & -40/100 \\\\ \n-0.5000 & -1/2 & -1/2 & -1/2 & -1/2 & -2/4 & -4/8 & -8/16 & -50/100 \\\\ \n-0.6000 & -3/5 & -3/5 & -3/5 & -1/2 & -2/4 & -5/8 & -10/16 & -60/100 \\\\ \n-0.7500 & -3/4 & -3/4 & -3/4 & -1 & -3/4 & -6/8 & -12/16 & -75/100 \\\\ \n-0.9000 & -8/9 & -9/10 & -9/10 & -1 & -1 & -7/8 & -14/16 & -90/100 \\\\ \n-0.9900 & -1 & -98/99 & -99/100 & -1 & -1 & -1 & -1 & -99/100 \\\\ \n-0.9990 & -1 & -1 & -998/999 & -1 & -1 & -1 & -1 & -1 \\\\ \n-0.9999 & -1 & -1 & -1 & -1 & -1 & -1 & -1 & -1 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{9}{>{\\raggedright\\arraybackslash}m{750pt}}{1 to 2} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n1.0001 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 \\\\ \n1.0010 & 1 & 1 & 1\\ 1/999 & 1 & 1 & 1 & 1 & 1 \\\\ \n1.0100 & 1 & 1\\ 1/99 & 1\\ 1/100 & 1 & 1 & 1 & 1 & 1\\ 1/100 \\\\ \n1.1000 & 1\\ 1/9 & 1\\ 1/10 & 1\\ 1/10 & 1 & 1 & 1\\ 1/8 & 1\\ 2/16 & 1\\ 10/100 \\\\ \n1.2500 & 1\\ 1/4 & 1\\ 1/4 & 1\\ 1/4 & 1\\ 1/2 & 1\\ 1/4 & 1\\ 2/8 & 1\\ 4/16 & 1\\ 25/100 \\\\ \n1.4000 & 1\\ 2/5 & 1\\ 2/5 & 1\\ 2/5 & 1\\ 1/2 & 1\\ 2/4 & 1\\ 3/8 & 1\\ 6/16 & 1\\ 40/100 \\\\ \n1.5000 & 1\\ 1/2 & 1\\ 1/2 & 1\\ 1/2 & 1\\ 1/2 & 1\\ 2/4 & 1\\ 4/8 & 1\\ 8/16 & 1\\ 50/100 \\\\ \n1.6000 & 1\\ 3/5 & 1\\ 3/5 & 1\\ 3/5 & 1\\ 1/2 & 1\\ 2/4 & 1\\ 5/8 & 1\\ 10/16 & 1\\ 60/100 \\\\ \n1.7500 & 1\\ 3/4 & 1\\ 3/4 & 1\\ 3/4 & 2 & 1\\ 3/4 & 1\\ 6/8 & 1\\ 12/16 & 1\\ 75/100 \\\\ \n1.9000 & 1\\ 8/9 & 1\\ 9/10 & 1\\ 9/10 & 2 & 2 & 1\\ 7/8 & 1\\ 14/16 & 1\\ 90/100 \\\\ \n1.9900 & 2 & 1\\ 98/99 & 1\\ 99/100 & 2 & 2 & 2 & 2 & 1\\ 99/100 \\\\ \n1.9990 & 2 & 2 & 1\\ 998/999 & 2 & 2 & 2 & 2 & 2 \\\\ \n1.9999 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{9}{>{\\raggedright\\arraybackslash}m{750pt}}{-1 to -2} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n-1.0001 & -1 & -1 & -1 & -1 & -1 & -1 & -1 & -1 \\\\ \n-1.0010 & -1 & -1 & -1\\ 1/999 & -1 & -1 & -1 & -1 & -1 \\\\ \n-1.0100 & -1 & -1\\ 1/99 & -1\\ 1/100 & -1 & -1 & -1 & -1 & -1\\ 1/100 \\\\ \n-1.1000 & -1\\ 1/9 & -1\\ 1/10 & -1\\ 1/10 & -1 & -1 & -1\\ 1/8 & -1\\ 2/16 & -1\\ 10/100 \\\\ \n-1.2500 & -1\\ 1/4 & -1\\ 1/4 & -1\\ 1/4 & -1\\ 1/2 & -1\\ 1/4 & -1\\ 2/8 & -1\\ 4/16 & -1\\ 25/100 \\\\ \n-1.4000 & -1\\ 2/5 & -1\\ 2/5 & -1\\ 2/5 & -1\\ 1/2 & -1\\ 2/4 & -1\\ 3/8 & -1\\ 6/16 & -1\\ 40/100 \\\\ \n-1.5000 & -1\\ 1/2 & -1\\ 1/2 & -1\\ 1/2 & -1\\ 1/2 & -1\\ 2/4 & -1\\ 4/8 & -1\\ 8/16 & -1\\ 50/100 \\\\ \n-1.6000 & -1\\ 3/5 & -1\\ 3/5 & -1\\ 3/5 & -1\\ 1/2 & -1\\ 2/4 & -1\\ 5/8 & -1\\ 10/16 & -1\\ 60/100 \\\\ \n-1.7500 & -1\\ 3/4 & -1\\ 3/4 & -1\\ 3/4 & -2 & -1\\ 3/4 & -1\\ 6/8 & -1\\ 12/16 & -1\\ 75/100 \\\\ \n-1.9000 & -1\\ 8/9 & -1\\ 9/10 & -1\\ 9/10 & -2 & -2 & -1\\ 7/8 & -1\\ 14/16 & -1\\ 90/100 \\\\ \n-1.9900 & -2 & -1\\ 98/99 & -1\\ 99/100 & -2 & -2 & -2 & -2 & -1\\ 99/100 \\\\ \n-1.9990 & -2 & -2 & -1\\ 998/999 & -2 & -2 & -2 & -2 & -2 \\\\ \n-1.9999 & -2 & -2 & -2 & -2 & -2 & -2 & -2 & -2 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{9}{>{\\raggedright\\arraybackslash}m{750pt}}{Exact Numbers} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n-1.0000 & -1 & -1 & -1 & -1 & -1 & -1 & -1 & -1 \\\\ \n0.0000 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\\\ \n1.0000 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{9}{>{\\raggedright\\arraybackslash}m{750pt}}{Not Numbers} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\nNA & NA & NA & NA & NA & NA & NA & NA & NA \\\\ \nNaN & NaN & NaN & NaN & NaN & NaN & NaN & NaN & NaN \\\\ \nInf & Inf & Inf & Inf & Inf & Inf & Inf & Inf & Inf \\\\ \n-Inf & -Inf & -Inf & -Inf & -Inf & -Inf & -Inf & -Inf & -Inf \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{>{\\raggedright\\arraybackslash}p{\\dimexpr 75.00pt -2\\tabcolsep-1.5\\arrayrulewidth}|>{\\raggedleft\\arraybackslash}p{\\dimexpr 75.00pt -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 75.00pt -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 75.00pt -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 75.00pt -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 75.00pt -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 75.00pt -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 75.00pt -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 75.00pt -2\\tabcolsep-1.5\\arrayrulewidth}}\n\\toprule\n & low & med & high & halves & quarters & eighths & sixteenths & hundredths \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{9}{>{\\raggedright\\arraybackslash}m{750pt}}{0 to 1} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n0.0001 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\\\ \n0.0010 & 0 & 0 & 1/999 & 0 & 0 & 0 & 0 & 0 \\\\ \n0.0100 & 0 & 1/99 & 1/100 & 0 & 0 & 0 & 0 & 1/100 \\\\ \n0.1000 & 1/9 & 1/10 & 1/10 & 0 & 0 & 1/8 & 2/16 & 10/100 \\\\ \n0.2500 & 1/4 & 1/4 & 1/4 & 1/2 & 1/4 & 2/8 & 4/16 & 25/100 \\\\ \n0.4000 & 2/5 & 2/5 & 2/5 & 1/2 & 2/4 & 3/8 & 6/16 & 40/100 \\\\ \n0.5000 & 1/2 & 1/2 & 1/2 & 1/2 & 2/4 & 4/8 & 8/16 & 50/100 \\\\ \n0.6000 & 3/5 & 3/5 & 3/5 & 1/2 & 2/4 & 5/8 & 10/16 & 60/100 \\\\ \n0.7500 & 3/4 & 3/4 & 3/4 & 1 & 3/4 & 6/8 & 12/16 & 75/100 \\\\ \n0.9000 & 8/9 & 9/10 & 9/10 & 1 & 1 & 7/8 & 14/16 & 90/100 \\\\ \n0.9900 & 1 & 98/99 & 99/100 & 1 & 1 & 1 & 1 & 99/100 \\\\ \n0.9990 & 1 & 1 & 998/999 & 1 & 1 & 1 & 1 & 1 \\\\ \n0.9999 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{9}{>{\\raggedright\\arraybackslash}m{750pt}}{0 to -1} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n-0.0001 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\\\ \n-0.0010 & 0 & 0 & -1/999 & 0 & 0 & 0 & 0 & 0 \\\\ \n-0.0100 & 0 & -1/99 & -1/100 & 0 & 0 & 0 & 0 & -1/100 \\\\ \n-0.1000 & -1/9 & -1/10 & -1/10 & 0 & 0 & -1/8 & -2/16 & -10/100 \\\\ \n-0.2500 & -1/4 & -1/4 & -1/4 & -1/2 & -1/4 & -2/8 & -4/16 & -25/100 \\\\ \n-0.4000 & -2/5 & -2/5 & -2/5 & -1/2 & -2/4 & -3/8 & -6/16 & -40/100 \\\\ \n-0.5000 & -1/2 & -1/2 & -1/2 & -1/2 & -2/4 & -4/8 & -8/16 & -50/100 \\\\ \n-0.6000 & -3/5 & -3/5 & -3/5 & -1/2 & -2/4 & -5/8 & -10/16 & -60/100 \\\\ \n-0.7500 & -3/4 & -3/4 & -3/4 & -1 & -3/4 & -6/8 & -12/16 & -75/100 \\\\ \n-0.9000 & -8/9 & -9/10 & -9/10 & -1 & -1 & -7/8 & -14/16 & -90/100 \\\\ \n-0.9900 & -1 & -98/99 & -99/100 & -1 & -1 & -1 & -1 & -99/100 \\\\ \n-0.9990 & -1 & -1 & -998/999 & -1 & -1 & -1 & -1 & -1 \\\\ \n-0.9999 & -1 & -1 & -1 & -1 & -1 & -1 & -1 & -1 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{9}{>{\\raggedright\\arraybackslash}m{750pt}}{1 to 2} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n1.0001 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 \\\\ \n1.0010 & 1 & 1 & 1\\ 1/999 & 1 & 1 & 1 & 1 & 1 \\\\ \n1.0100 & 1 & 1\\ 1/99 & 1\\ 1/100 & 1 & 1 & 1 & 1 & 1\\ 1/100 \\\\ \n1.1000 & 1\\ 1/9 & 1\\ 1/10 & 1\\ 1/10 & 1 & 1 & 1\\ 1/8 & 1\\ 2/16 & 1\\ 10/100 \\\\ \n1.2500 & 1\\ 1/4 & 1\\ 1/4 & 1\\ 1/4 & 1\\ 1/2 & 1\\ 1/4 & 1\\ 2/8 & 1\\ 4/16 & 1\\ 25/100 \\\\ \n1.4000 & 1\\ 2/5 & 1\\ 2/5 & 1\\ 2/5 & 1\\ 1/2 & 1\\ 2/4 & 1\\ 3/8 & 1\\ 6/16 & 1\\ 40/100 \\\\ \n1.5000 & 1\\ 1/2 & 1\\ 1/2 & 1\\ 1/2 & 1\\ 1/2 & 1\\ 2/4 & 1\\ 4/8 & 1\\ 8/16 & 1\\ 50/100 \\\\ \n1.6000 & 1\\ 3/5 & 1\\ 3/5 & 1\\ 3/5 & 1\\ 1/2 & 1\\ 2/4 & 1\\ 5/8 & 1\\ 10/16 & 1\\ 60/100 \\\\ \n1.7500 & 1\\ 3/4 & 1\\ 3/4 & 1\\ 3/4 & 2 & 1\\ 3/4 & 1\\ 6/8 & 1\\ 12/16 & 1\\ 75/100 \\\\ \n1.9000 & 1\\ 8/9 & 1\\ 9/10 & 1\\ 9/10 & 2 & 2 & 1\\ 7/8 & 1\\ 14/16 & 1\\ 90/100 \\\\ \n1.9900 & 2 & 1\\ 98/99 & 1\\ 99/100 & 2 & 2 & 2 & 2 & 1\\ 99/100 \\\\ \n1.9990 & 2 & 2 & 1\\ 998/999 & 2 & 2 & 2 & 2 & 2 \\\\ \n1.9999 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{9}{>{\\raggedright\\arraybackslash}m{750pt}}{-1 to -2} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n-1.0001 & -1 & -1 & -1 & -1 & -1 & -1 & -1 & -1 \\\\ \n-1.0010 & -1 & -1 & -1\\ 1/999 & -1 & -1 & -1 & -1 & -1 \\\\ \n-1.0100 & -1 & -1\\ 1/99 & -1\\ 1/100 & -1 & -1 & -1 & -1 & -1\\ 1/100 \\\\ \n-1.1000 & -1\\ 1/9 & -1\\ 1/10 & -1\\ 1/10 & -1 & -1 & -1\\ 1/8 & -1\\ 2/16 & -1\\ 10/100 \\\\ \n-1.2500 & -1\\ 1/4 & -1\\ 1/4 & -1\\ 1/4 & -1\\ 1/2 & -1\\ 1/4 & -1\\ 2/8 & -1\\ 4/16 & -1\\ 25/100 \\\\ \n-1.4000 & -1\\ 2/5 & -1\\ 2/5 & -1\\ 2/5 & -1\\ 1/2 & -1\\ 2/4 & -1\\ 3/8 & -1\\ 6/16 & -1\\ 40/100 \\\\ \n-1.5000 & -1\\ 1/2 & -1\\ 1/2 & -1\\ 1/2 & -1\\ 1/2 & -1\\ 2/4 & -1\\ 4/8 & -1\\ 8/16 & -1\\ 50/100 \\\\ \n-1.6000 & -1\\ 3/5 & -1\\ 3/5 & -1\\ 3/5 & -1\\ 1/2 & -1\\ 2/4 & -1\\ 5/8 & -1\\ 10/16 & -1\\ 60/100 \\\\ \n-1.7500 & -1\\ 3/4 & -1\\ 3/4 & -1\\ 3/4 & -2 & -1\\ 3/4 & -1\\ 6/8 & -1\\ 12/16 & -1\\ 75/100 \\\\ \n-1.9000 & -1\\ 8/9 & -1\\ 9/10 & -1\\ 9/10 & -2 & -2 & -1\\ 7/8 & -1\\ 14/16 & -1\\ 90/100 \\\\ \n-1.9900 & -2 & -1\\ 98/99 & -1\\ 99/100 & -2 & -2 & -2 & -2 & -1\\ 99/100 \\\\ \n-1.9990 & -2 & -2 & -1\\ 998/999 & -2 & -2 & -2 & -2 & -2 \\\\ \n-1.9999 & -2 & -2 & -2 & -2 & -2 & -2 & -2 & -2 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{9}{>{\\raggedright\\arraybackslash}m{750pt}}{Exact Numbers} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n-1.0000 & -1 & -1 & -1 & -1 & -1 & -1 & -1 & -1 \\\\ \n0.0000 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\\\ \n1.0000 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{9}{>{\\raggedright\\arraybackslash}m{750pt}}{Not Numbers} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\nNA & NA & NA & NA & NA & NA & NA & NA & NA \\\\ \nNaN & NaN & NaN & NaN & NaN & NaN & NaN & NaN & NaN \\\\ \nInf & Inf & Inf & Inf & Inf & Inf & Inf & Inf & Inf \\\\ \n-Inf & -Inf & -Inf & -Inf & -Inf & -Inf & -Inf & -Inf & -Inf \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" --- Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{>{\\raggedright\\arraybackslash}p{\\dimexpr 75.00pt -2\\tabcolsep-1.5\\arrayrulewidth}|>{\\raggedleft\\arraybackslash}p{\\dimexpr 75.00pt -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 75.00pt -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 75.00pt -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 75.00pt -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 75.00pt -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 75.00pt -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 75.00pt -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 75.00pt -2\\tabcolsep-1.5\\arrayrulewidth}}\n\\toprule\n & low & med & high & halves & quarters & eighths & sixteenths & hundredths \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{9}{>{\\raggedright\\arraybackslash}m{750pt}}{0 to 1} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n0.0001 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\\\ \n0.0010 & 0 & 0 & 1/999 & 0 & 0 & 0 & 0 & 0 \\\\ \n0.0100 & 0 & 1/99 & 1/100 & 0 & 0 & 0 & 0 & 1/100 \\\\ \n0.1000 & 1/9 & 1/10 & 1/10 & 0 & 0 & 1/8 & 1/8 & 1/10 \\\\ \n0.2500 & 1/4 & 1/4 & 1/4 & 1/2 & 1/4 & 1/4 & 1/4 & 1/4 \\\\ \n0.4000 & 2/5 & 2/5 & 2/5 & 1/2 & 1/2 & 3/8 & 3/8 & 2/5 \\\\ \n0.5000 & 1/2 & 1/2 & 1/2 & 1/2 & 1/2 & 1/2 & 1/2 & 1/2 \\\\ \n0.6000 & 3/5 & 3/5 & 3/5 & 1/2 & 1/2 & 5/8 & 5/8 & 3/5 \\\\ \n0.7500 & 3/4 & 3/4 & 3/4 & 1 & 3/4 & 3/4 & 3/4 & 3/4 \\\\ \n0.9000 & 8/9 & 9/10 & 9/10 & 1 & 1 & 7/8 & 7/8 & 9/10 \\\\ \n0.9900 & 1 & 98/99 & 99/100 & 1 & 1 & 1 & 1 & 99/100 \\\\ \n0.9990 & 1 & 1 & 998/999 & 1 & 1 & 1 & 1 & 1 \\\\ \n0.9999 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{9}{>{\\raggedright\\arraybackslash}m{750pt}}{0 to -1} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n-0.0001 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\\\ \n-0.0010 & 0 & 0 & -1/999 & 0 & 0 & 0 & 0 & 0 \\\\ \n-0.0100 & 0 & -1/99 & -1/100 & 0 & 0 & 0 & 0 & -1/100 \\\\ \n-0.1000 & -1/9 & -1/10 & -1/10 & 0 & 0 & -1/8 & -1/8 & -1/10 \\\\ \n-0.2500 & -1/4 & -1/4 & -1/4 & -1/2 & -1/4 & -1/4 & -1/4 & -1/4 \\\\ \n-0.4000 & -2/5 & -2/5 & -2/5 & -1/2 & -1/2 & -3/8 & -3/8 & -2/5 \\\\ \n-0.5000 & -1/2 & -1/2 & -1/2 & -1/2 & -1/2 & -1/2 & -1/2 & -1/2 \\\\ \n-0.6000 & -3/5 & -3/5 & -3/5 & -1/2 & -1/2 & -5/8 & -5/8 & -3/5 \\\\ \n-0.7500 & -3/4 & -3/4 & -3/4 & -1 & -3/4 & -3/4 & -3/4 & -3/4 \\\\ \n-0.9000 & -8/9 & -9/10 & -9/10 & -1 & -1 & -7/8 & -7/8 & -9/10 \\\\ \n-0.9900 & -1 & -98/99 & -99/100 & -1 & -1 & -1 & -1 & -99/100 \\\\ \n-0.9990 & -1 & -1 & -998/999 & -1 & -1 & -1 & -1 & -1 \\\\ \n-0.9999 & -1 & -1 & -1 & -1 & -1 & -1 & -1 & -1 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{9}{>{\\raggedright\\arraybackslash}m{750pt}}{1 to 2} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n1.0001 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 \\\\ \n1.0010 & 1 & 1 & 1\\ 1/999 & 1 & 1 & 1 & 1 & 1 \\\\ \n1.0100 & 1 & 1\\ 1/99 & 1\\ 1/100 & 1 & 1 & 1 & 1 & 1\\ 1/100 \\\\ \n1.1000 & 1\\ 1/9 & 1\\ 1/10 & 1\\ 1/10 & 1 & 1 & 1\\ 1/8 & 1\\ 1/8 & 1\\ 1/10 \\\\ \n1.2500 & 1\\ 1/4 & 1\\ 1/4 & 1\\ 1/4 & 1\\ 1/2 & 1\\ 1/4 & 1\\ 1/4 & 1\\ 1/4 & 1\\ 1/4 \\\\ \n1.4000 & 1\\ 2/5 & 1\\ 2/5 & 1\\ 2/5 & 1\\ 1/2 & 1\\ 1/2 & 1\\ 3/8 & 1\\ 3/8 & 1\\ 2/5 \\\\ \n1.5000 & 1\\ 1/2 & 1\\ 1/2 & 1\\ 1/2 & 1\\ 1/2 & 1\\ 1/2 & 1\\ 1/2 & 1\\ 1/2 & 1\\ 1/2 \\\\ \n1.6000 & 1\\ 3/5 & 1\\ 3/5 & 1\\ 3/5 & 1\\ 1/2 & 1\\ 1/2 & 1\\ 5/8 & 1\\ 5/8 & 1\\ 3/5 \\\\ \n1.7500 & 1\\ 3/4 & 1\\ 3/4 & 1\\ 3/4 & 2 & 1\\ 3/4 & 1\\ 3/4 & 1\\ 3/4 & 1\\ 3/4 \\\\ \n1.9000 & 1\\ 8/9 & 1\\ 9/10 & 1\\ 9/10 & 2 & 2 & 1\\ 7/8 & 1\\ 7/8 & 1\\ 9/10 \\\\ \n1.9900 & 2 & 1\\ 98/99 & 1\\ 99/100 & 2 & 2 & 2 & 2 & 1\\ 99/100 \\\\ \n1.9990 & 2 & 2 & 1\\ 998/999 & 2 & 2 & 2 & 2 & 2 \\\\ \n1.9999 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{9}{>{\\raggedright\\arraybackslash}m{750pt}}{-1 to -2} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n-1.0001 & -1 & -1 & -1 & -1 & -1 & -1 & -1 & -1 \\\\ \n-1.0010 & -1 & -1 & -1\\ 1/999 & -1 & -1 & -1 & -1 & -1 \\\\ \n-1.0100 & -1 & -1\\ 1/99 & -1\\ 1/100 & -1 & -1 & -1 & -1 & -1\\ 1/100 \\\\ \n-1.1000 & -1\\ 1/9 & -1\\ 1/10 & -1\\ 1/10 & -1 & -1 & -1\\ 1/8 & -1\\ 1/8 & -1\\ 1/10 \\\\ \n-1.2500 & -1\\ 1/4 & -1\\ 1/4 & -1\\ 1/4 & -1\\ 1/2 & -1\\ 1/4 & -1\\ 1/4 & -1\\ 1/4 & -1\\ 1/4 \\\\ \n-1.4000 & -1\\ 2/5 & -1\\ 2/5 & -1\\ 2/5 & -1\\ 1/2 & -1\\ 1/2 & -1\\ 3/8 & -1\\ 3/8 & -1\\ 2/5 \\\\ \n-1.5000 & -1\\ 1/2 & -1\\ 1/2 & -1\\ 1/2 & -1\\ 1/2 & -1\\ 1/2 & -1\\ 1/2 & -1\\ 1/2 & -1\\ 1/2 \\\\ \n-1.6000 & -1\\ 3/5 & -1\\ 3/5 & -1\\ 3/5 & -1\\ 1/2 & -1\\ 1/2 & -1\\ 5/8 & -1\\ 5/8 & -1\\ 3/5 \\\\ \n-1.7500 & -1\\ 3/4 & -1\\ 3/4 & -1\\ 3/4 & -2 & -1\\ 3/4 & -1\\ 3/4 & -1\\ 3/4 & -1\\ 3/4 \\\\ \n-1.9000 & -1\\ 8/9 & -1\\ 9/10 & -1\\ 9/10 & -2 & -2 & -1\\ 7/8 & -1\\ 7/8 & -1\\ 9/10 \\\\ \n-1.9900 & -2 & -1\\ 98/99 & -1\\ 99/100 & -2 & -2 & -2 & -2 & -1\\ 99/100 \\\\ \n-1.9990 & -2 & -2 & -1\\ 998/999 & -2 & -2 & -2 & -2 & -2 \\\\ \n-1.9999 & -2 & -2 & -2 & -2 & -2 & -2 & -2 & -2 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{9}{>{\\raggedright\\arraybackslash}m{750pt}}{Exact Numbers} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n-1.0000 & -1 & -1 & -1 & -1 & -1 & -1 & -1 & -1 \\\\ \n0.0000 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\\\ \n1.0000 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{9}{>{\\raggedright\\arraybackslash}m{750pt}}{Not Numbers} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\nNA & NA & NA & NA & NA & NA & NA & NA & NA \\\\ \nNaN & NaN & NaN & NaN & NaN & NaN & NaN & NaN & NaN \\\\ \nInf & Inf & Inf & Inf & Inf & Inf & Inf & Inf & Inf \\\\ \n-Inf & -Inf & -Inf & -Inf & -Inf & -Inf & -Inf & -Inf & -Inf \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{>{\\raggedright\\arraybackslash}p{\\dimexpr 75.00pt -2\\tabcolsep-1.5\\arrayrulewidth}|>{\\raggedleft\\arraybackslash}p{\\dimexpr 75.00pt -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 75.00pt -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 75.00pt -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 75.00pt -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 75.00pt -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 75.00pt -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 75.00pt -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 75.00pt -2\\tabcolsep-1.5\\arrayrulewidth}}\n\\toprule\n & low & med & high & halves & quarters & eighths & sixteenths & hundredths \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{9}{>{\\raggedright\\arraybackslash}m{750pt}}{0 to 1} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n0.0001 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\\\ \n0.0010 & 0 & 0 & 1/999 & 0 & 0 & 0 & 0 & 0 \\\\ \n0.0100 & 0 & 1/99 & 1/100 & 0 & 0 & 0 & 0 & 1/100 \\\\ \n0.1000 & 1/9 & 1/10 & 1/10 & 0 & 0 & 1/8 & 1/8 & 1/10 \\\\ \n0.2500 & 1/4 & 1/4 & 1/4 & 1/2 & 1/4 & 1/4 & 1/4 & 1/4 \\\\ \n0.4000 & 2/5 & 2/5 & 2/5 & 1/2 & 1/2 & 3/8 & 3/8 & 2/5 \\\\ \n0.5000 & 1/2 & 1/2 & 1/2 & 1/2 & 1/2 & 1/2 & 1/2 & 1/2 \\\\ \n0.6000 & 3/5 & 3/5 & 3/5 & 1/2 & 1/2 & 5/8 & 5/8 & 3/5 \\\\ \n0.7500 & 3/4 & 3/4 & 3/4 & 1 & 3/4 & 3/4 & 3/4 & 3/4 \\\\ \n0.9000 & 8/9 & 9/10 & 9/10 & 1 & 1 & 7/8 & 7/8 & 9/10 \\\\ \n0.9900 & 1 & 98/99 & 99/100 & 1 & 1 & 1 & 1 & 99/100 \\\\ \n0.9990 & 1 & 1 & 998/999 & 1 & 1 & 1 & 1 & 1 \\\\ \n0.9999 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{9}{>{\\raggedright\\arraybackslash}m{750pt}}{0 to -1} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n-0.0001 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\\\ \n-0.0010 & 0 & 0 & -1/999 & 0 & 0 & 0 & 0 & 0 \\\\ \n-0.0100 & 0 & -1/99 & -1/100 & 0 & 0 & 0 & 0 & -1/100 \\\\ \n-0.1000 & -1/9 & -1/10 & -1/10 & 0 & 0 & -1/8 & -1/8 & -1/10 \\\\ \n-0.2500 & -1/4 & -1/4 & -1/4 & -1/2 & -1/4 & -1/4 & -1/4 & -1/4 \\\\ \n-0.4000 & -2/5 & -2/5 & -2/5 & -1/2 & -1/2 & -3/8 & -3/8 & -2/5 \\\\ \n-0.5000 & -1/2 & -1/2 & -1/2 & -1/2 & -1/2 & -1/2 & -1/2 & -1/2 \\\\ \n-0.6000 & -3/5 & -3/5 & -3/5 & -1/2 & -1/2 & -5/8 & -5/8 & -3/5 \\\\ \n-0.7500 & -3/4 & -3/4 & -3/4 & -1 & -3/4 & -3/4 & -3/4 & -3/4 \\\\ \n-0.9000 & -8/9 & -9/10 & -9/10 & -1 & -1 & -7/8 & -7/8 & -9/10 \\\\ \n-0.9900 & -1 & -98/99 & -99/100 & -1 & -1 & -1 & -1 & -99/100 \\\\ \n-0.9990 & -1 & -1 & -998/999 & -1 & -1 & -1 & -1 & -1 \\\\ \n-0.9999 & -1 & -1 & -1 & -1 & -1 & -1 & -1 & -1 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{9}{>{\\raggedright\\arraybackslash}m{750pt}}{1 to 2} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n1.0001 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 \\\\ \n1.0010 & 1 & 1 & 1\\ 1/999 & 1 & 1 & 1 & 1 & 1 \\\\ \n1.0100 & 1 & 1\\ 1/99 & 1\\ 1/100 & 1 & 1 & 1 & 1 & 1\\ 1/100 \\\\ \n1.1000 & 1\\ 1/9 & 1\\ 1/10 & 1\\ 1/10 & 1 & 1 & 1\\ 1/8 & 1\\ 1/8 & 1\\ 1/10 \\\\ \n1.2500 & 1\\ 1/4 & 1\\ 1/4 & 1\\ 1/4 & 1\\ 1/2 & 1\\ 1/4 & 1\\ 1/4 & 1\\ 1/4 & 1\\ 1/4 \\\\ \n1.4000 & 1\\ 2/5 & 1\\ 2/5 & 1\\ 2/5 & 1\\ 1/2 & 1\\ 1/2 & 1\\ 3/8 & 1\\ 3/8 & 1\\ 2/5 \\\\ \n1.5000 & 1\\ 1/2 & 1\\ 1/2 & 1\\ 1/2 & 1\\ 1/2 & 1\\ 1/2 & 1\\ 1/2 & 1\\ 1/2 & 1\\ 1/2 \\\\ \n1.6000 & 1\\ 3/5 & 1\\ 3/5 & 1\\ 3/5 & 1\\ 1/2 & 1\\ 1/2 & 1\\ 5/8 & 1\\ 5/8 & 1\\ 3/5 \\\\ \n1.7500 & 1\\ 3/4 & 1\\ 3/4 & 1\\ 3/4 & 2 & 1\\ 3/4 & 1\\ 3/4 & 1\\ 3/4 & 1\\ 3/4 \\\\ \n1.9000 & 1\\ 8/9 & 1\\ 9/10 & 1\\ 9/10 & 2 & 2 & 1\\ 7/8 & 1\\ 7/8 & 1\\ 9/10 \\\\ \n1.9900 & 2 & 1\\ 98/99 & 1\\ 99/100 & 2 & 2 & 2 & 2 & 1\\ 99/100 \\\\ \n1.9990 & 2 & 2 & 1\\ 998/999 & 2 & 2 & 2 & 2 & 2 \\\\ \n1.9999 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{9}{>{\\raggedright\\arraybackslash}m{750pt}}{-1 to -2} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n-1.0001 & -1 & -1 & -1 & -1 & -1 & -1 & -1 & -1 \\\\ \n-1.0010 & -1 & -1 & -1\\ 1/999 & -1 & -1 & -1 & -1 & -1 \\\\ \n-1.0100 & -1 & -1\\ 1/99 & -1\\ 1/100 & -1 & -1 & -1 & -1 & -1\\ 1/100 \\\\ \n-1.1000 & -1\\ 1/9 & -1\\ 1/10 & -1\\ 1/10 & -1 & -1 & -1\\ 1/8 & -1\\ 1/8 & -1\\ 1/10 \\\\ \n-1.2500 & -1\\ 1/4 & -1\\ 1/4 & -1\\ 1/4 & -1\\ 1/2 & -1\\ 1/4 & -1\\ 1/4 & -1\\ 1/4 & -1\\ 1/4 \\\\ \n-1.4000 & -1\\ 2/5 & -1\\ 2/5 & -1\\ 2/5 & -1\\ 1/2 & -1\\ 1/2 & -1\\ 3/8 & -1\\ 3/8 & -1\\ 2/5 \\\\ \n-1.5000 & -1\\ 1/2 & -1\\ 1/2 & -1\\ 1/2 & -1\\ 1/2 & -1\\ 1/2 & -1\\ 1/2 & -1\\ 1/2 & -1\\ 1/2 \\\\ \n-1.6000 & -1\\ 3/5 & -1\\ 3/5 & -1\\ 3/5 & -1\\ 1/2 & -1\\ 1/2 & -1\\ 5/8 & -1\\ 5/8 & -1\\ 3/5 \\\\ \n-1.7500 & -1\\ 3/4 & -1\\ 3/4 & -1\\ 3/4 & -2 & -1\\ 3/4 & -1\\ 3/4 & -1\\ 3/4 & -1\\ 3/4 \\\\ \n-1.9000 & -1\\ 8/9 & -1\\ 9/10 & -1\\ 9/10 & -2 & -2 & -1\\ 7/8 & -1\\ 7/8 & -1\\ 9/10 \\\\ \n-1.9900 & -2 & -1\\ 98/99 & -1\\ 99/100 & -2 & -2 & -2 & -2 & -1\\ 99/100 \\\\ \n-1.9990 & -2 & -2 & -1\\ 998/999 & -2 & -2 & -2 & -2 & -2 \\\\ \n-1.9999 & -2 & -2 & -2 & -2 & -2 & -2 & -2 & -2 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{9}{>{\\raggedright\\arraybackslash}m{750pt}}{Exact Numbers} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n-1.0000 & -1 & -1 & -1 & -1 & -1 & -1 & -1 & -1 \\\\ \n0.0000 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\\\ \n1.0000 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{9}{>{\\raggedright\\arraybackslash}m{750pt}}{Not Numbers} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\nNA & NA & NA & NA & NA & NA & NA & NA & NA \\\\ \nNaN & NaN & NaN & NaN & NaN & NaN & NaN & NaN & NaN \\\\ \nInf & Inf & Inf & Inf & Inf & Inf & Inf & Inf & Inf \\\\ \n-Inf & -Inf & -Inf & -Inf & -Inf & -Inf & -Inf & -Inf & -Inf \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" --- diff --git a/tests/testthat/_snaps/footer.md b/tests/testthat/_snaps/footer.md index 881a57c0c9..c3fe8d1ad6 100644 --- a/tests/testthat/_snaps/footer.md +++ b/tests/testthat/_snaps/footer.md @@ -51,7 +51,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{rlcrrrrll}\n\\toprule\nnum\\textsuperscript{\\textit{1}} & char\\textsuperscript{\\textit{2}} & fctr & date & time & datetime & currency & row & group \\\\ \n\\midrule\\addlinespace[2.5pt]\n0.1111 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.95 & row\\_1 & grp\\_a \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\n\\textsuperscript{\\textit{1}}footnote **bold** (\\#1, no `md()`)\\\\\n\\textsuperscript{\\textit{2}}footnote \\textbf{bold} (\\#2, uses \\texttt{md()})\\\\\nSource note **bold** (\\#1, no `md()`)\\\\\nSource note \\textbf{bold} (\\#2, uses \\texttt{md()})\\\\\n\\end{minipage}\n\\endgroup\n" + [1] "\\begingroup\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{rlcrrrrll}\n\\toprule\nnum\\textsuperscript{\\textit{1}} & char\\textsuperscript{\\textit{2}} & fctr & date & time & datetime & currency & row & group \\\\ \n\\midrule\\addlinespace[2.5pt]\n0.1111 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.95 & row\\_1 & grp\\_a \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\n\\textsuperscript{\\textit{1}}footnote **bold** (\\#1, no `md()`)\\\\\n\\textsuperscript{\\textit{2}}footnote \\textbf{bold} (\\#2, uses \\texttt{md()})\\\\\nSource note **bold** (\\#1, no `md()`)\\\\\nSource note \\textbf{bold} (\\#2, uses \\texttt{md()})\\\\\n\\end{minipage}\n\\endgroup\n" --- @@ -194,7 +194,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{rlcrrrrll}\n\\toprule\nnum\\textsuperscript{\\textit{1}} & char\\textsuperscript{\\textit{2}} & fctr & date & time & datetime & currency & row & group \\\\ \n\\midrule\\addlinespace[2.5pt]\n0.1111 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.95 & row\\_1 & grp\\_a \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\n\\textsuperscript{\\textit{1}}footnote **bold** (\\#1, no `md()`) \\textsuperscript{\\textit{2}}footnote \\textbf{bold} (\\#2, uses \\texttt{md()})\\\\\nSource note **bold** (\\#1, no `md()`) Source note \\textbf{bold} (\\#2, uses \\texttt{md()})\\\\\n\\end{minipage}\n\\endgroup\n" + [1] "\\begingroup\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{rlcrrrrll}\n\\toprule\nnum\\textsuperscript{\\textit{1}} & char\\textsuperscript{\\textit{2}} & fctr & date & time & datetime & currency & row & group \\\\ \n\\midrule\\addlinespace[2.5pt]\n0.1111 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.95 & row\\_1 & grp\\_a \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\n\\textsuperscript{\\textit{1}}footnote **bold** (\\#1, no `md()`) \\textsuperscript{\\textit{2}}footnote \\textbf{bold} (\\#2, uses \\texttt{md()})\\\\\nSource note **bold** (\\#1, no `md()`) Source note \\textbf{bold} (\\#2, uses \\texttt{md()})\\\\\n\\end{minipage}\n\\endgroup\n" --- @@ -337,7 +337,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{rlcrrrrll}\n\\toprule\nnum\\textsuperscript{\\textit{1}} & char\\textsuperscript{\\textit{2}} & fctr & date & time & datetime & currency & row & group \\\\ \n\\midrule\\addlinespace[2.5pt]\n0.1111 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.95 & row\\_1 & grp\\_a \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\n\\textsuperscript{\\textit{1}}footnote **bold** (\\#1, no `md()`) \\textit{|} \\textsuperscript{\\textit{2}}footnote \\textbf{bold} (\\#2, uses \\texttt{md()})\\\\\nSource note **bold** (\\#1, no `md()`) \\textit{|} Source note \\textbf{bold} (\\#2, uses \\texttt{md()})\\\\\n\\end{minipage}\n\\endgroup\n" + [1] "\\begingroup\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{rlcrrrrll}\n\\toprule\nnum\\textsuperscript{\\textit{1}} & char\\textsuperscript{\\textit{2}} & fctr & date & time & datetime & currency & row & group \\\\ \n\\midrule\\addlinespace[2.5pt]\n0.1111 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.95 & row\\_1 & grp\\_a \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\n\\textsuperscript{\\textit{1}}footnote **bold** (\\#1, no `md()`) \\textit{|} \\textsuperscript{\\textit{2}}footnote \\textbf{bold} (\\#2, uses \\texttt{md()})\\\\\nSource note **bold** (\\#1, no `md()`) \\textit{|} Source note \\textbf{bold} (\\#2, uses \\texttt{md()})\\\\\n\\end{minipage}\n\\endgroup\n" --- diff --git a/tests/testthat/_snaps/group_column_label.md b/tests/testthat/_snaps/group_column_label.md index f364786aaa..47623c0055 100644 --- a/tests/testthat/_snaps/group_column_label.md +++ b/tests/testthat/_snaps/group_column_label.md @@ -118,7 +118,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{rlcrrrrll}\n\\caption*{\n{\\large Data listing from \\textbf{exibble}} \\\\ \n{\\small \\texttt{exibble} is an R dataset}\n} \\\\ \n\\toprule\n & & & \\multicolumn{3}{c}{timing} & & & \\\\ \n\\cmidrule(lr){4-6}\nnum & char & fctr & date & time & datetime & currency & row & group \\\\ \n\\midrule\\addlinespace[2.5pt]\n1.111e-01 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.950 & row\\_1 & grp\\_a \\\\ \n2.222e+00 & banana & two & 2015-02-15 & 14:40 & 2018-02-02 14:33 & 17.950 & row\\_2 & grp\\_a \\\\ \n3.333e+01 & coconut & three & 2015-03-15 & 15:45 & 2018-03-03 03:44 & 1.390 & row\\_3 & grp\\_a \\\\ \n4.444e+02 & durian & four & 2015-04-15 & 16:50 & 2018-04-04 15:55 & 65100.000 & row\\_4 & grp\\_a \\\\ \n5.550e+03 & NA & five & 2015-05-15 & 17:55 & 2018-05-05 04:00 & 1325.810 & row\\_5 & grp\\_b \\\\ \nNA & fig & six & 2015-06-15 & NA & 2018-06-06 16:11 & 13.255 & row\\_6 & grp\\_b \\\\ \n7.770e+05 & grapefruit & seven & NA & 19:10 & 2018-07-07 05:22 & NA & row\\_7 & grp\\_b \\\\ \n8.880e+06 & honeydew & eight & 2015-08-15 & 20:20 & NA & 0.440 & row\\_8 & grp\\_b \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\nSource note \\#1\\\\\nSource note \\#2\\\\\n\\end{minipage}\n\\endgroup\n" + [1] "\\begingroup\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{rlcrrrrll}\n\\caption*{\n{\\large Data listing from \\textbf{exibble}} \\\\ \n{\\small \\texttt{exibble} is an R dataset}\n} \\\\ \n\\toprule\n & & & \\multicolumn{3}{c}{timing} & & & \\\\ \n\\cmidrule(lr){4-6}\nnum & char & fctr & date & time & datetime & currency & row & group \\\\ \n\\midrule\\addlinespace[2.5pt]\n1.111e-01 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.950 & row\\_1 & grp\\_a \\\\ \n2.222e+00 & banana & two & 2015-02-15 & 14:40 & 2018-02-02 14:33 & 17.950 & row\\_2 & grp\\_a \\\\ \n3.333e+01 & coconut & three & 2015-03-15 & 15:45 & 2018-03-03 03:44 & 1.390 & row\\_3 & grp\\_a \\\\ \n4.444e+02 & durian & four & 2015-04-15 & 16:50 & 2018-04-04 15:55 & 65100.000 & row\\_4 & grp\\_a \\\\ \n5.550e+03 & NA & five & 2015-05-15 & 17:55 & 2018-05-05 04:00 & 1325.810 & row\\_5 & grp\\_b \\\\ \nNA & fig & six & 2015-06-15 & NA & 2018-06-06 16:11 & 13.255 & row\\_6 & grp\\_b \\\\ \n7.770e+05 & grapefruit & seven & NA & 19:10 & 2018-07-07 05:22 & NA & row\\_7 & grp\\_b \\\\ \n8.880e+06 & honeydew & eight & 2015-08-15 & 20:20 & NA & 0.440 & row\\_8 & grp\\_b \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\nSource note \\#1\\\\\nSource note \\#2\\\\\n\\end{minipage}\n\\endgroup\n" --- @@ -578,7 +578,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{rlcrrrrll}\n\\caption*{\n{\\large Data listing from \\textbf{exibble}} \\\\ \n{\\small \\texttt{exibble} is an R dataset}\n} \\\\ \n\\toprule\n & & & \\multicolumn{3}{c}{timing} & & & \\\\ \n\\cmidrule(lr){4-6}\nnum & char & fctr & date & time & datetime & currency & row & group \\\\ \n\\midrule\\addlinespace[2.5pt]\n1.111e-01 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.950 & row\\_1 & grp\\_a \\\\ \n2.222e+00 & banana & two & 2015-02-15 & 14:40 & 2018-02-02 14:33 & 17.950 & row\\_2 & grp\\_a \\\\ \n3.333e+01 & coconut & three & 2015-03-15 & 15:45 & 2018-03-03 03:44 & 1.390 & row\\_3 & grp\\_a \\\\ \n4.444e+02 & durian & four & 2015-04-15 & 16:50 & 2018-04-04 15:55 & 65100.000 & row\\_4 & grp\\_a \\\\ \n5.550e+03 & NA & five & 2015-05-15 & 17:55 & 2018-05-05 04:00 & 1325.810 & row\\_5 & grp\\_b \\\\ \nNA & fig & six & 2015-06-15 & NA & 2018-06-06 16:11 & 13.255 & row\\_6 & grp\\_b \\\\ \n7.770e+05 & grapefruit & seven & NA & 19:10 & 2018-07-07 05:22 & NA & row\\_7 & grp\\_b \\\\ \n8.880e+06 & honeydew & eight & 2015-08-15 & 20:20 & NA & 0.440 & row\\_8 & grp\\_b \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\nSource note \\#1\\\\\nSource note \\#2\\\\\n\\end{minipage}\n\\endgroup\n" + [1] "\\begingroup\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{rlcrrrrll}\n\\caption*{\n{\\large Data listing from \\textbf{exibble}} \\\\ \n{\\small \\texttt{exibble} is an R dataset}\n} \\\\ \n\\toprule\n & & & \\multicolumn{3}{c}{timing} & & & \\\\ \n\\cmidrule(lr){4-6}\nnum & char & fctr & date & time & datetime & currency & row & group \\\\ \n\\midrule\\addlinespace[2.5pt]\n1.111e-01 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.950 & row\\_1 & grp\\_a \\\\ \n2.222e+00 & banana & two & 2015-02-15 & 14:40 & 2018-02-02 14:33 & 17.950 & row\\_2 & grp\\_a \\\\ \n3.333e+01 & coconut & three & 2015-03-15 & 15:45 & 2018-03-03 03:44 & 1.390 & row\\_3 & grp\\_a \\\\ \n4.444e+02 & durian & four & 2015-04-15 & 16:50 & 2018-04-04 15:55 & 65100.000 & row\\_4 & grp\\_a \\\\ \n5.550e+03 & NA & five & 2015-05-15 & 17:55 & 2018-05-05 04:00 & 1325.810 & row\\_5 & grp\\_b \\\\ \nNA & fig & six & 2015-06-15 & NA & 2018-06-06 16:11 & 13.255 & row\\_6 & grp\\_b \\\\ \n7.770e+05 & grapefruit & seven & NA & 19:10 & 2018-07-07 05:22 & NA & row\\_7 & grp\\_b \\\\ \n8.880e+06 & honeydew & eight & 2015-08-15 & 20:20 & NA & 0.440 & row\\_8 & grp\\_b \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\nSource note \\#1\\\\\nSource note \\#2\\\\\n\\end{minipage}\n\\endgroup\n" --- @@ -1035,7 +1035,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{rlcrrrrl}\n\\caption*{\n{\\large Data listing from \\textbf{exibble}} \\\\ \n{\\small \\texttt{exibble} is an R dataset}\n} \\\\ \n\\toprule\n & & & \\multicolumn{3}{c}{timing} & & \\\\ \n\\cmidrule(lr){4-6}\nnum & char & fctr & date & time & datetime & currency & row \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{8}{l}{grp\\_a} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n1.111e-01 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.950 & row\\_1 \\\\ \n2.222e+00 & banana & two & 2015-02-15 & 14:40 & 2018-02-02 14:33 & 17.950 & row\\_2 \\\\ \n3.333e+01 & coconut & three & 2015-03-15 & 15:45 & 2018-03-03 03:44 & 1.390 & row\\_3 \\\\ \n4.444e+02 & durian & four & 2015-04-15 & 16:50 & 2018-04-04 15:55 & 65100.000 & row\\_4 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{8}{l}{grp\\_b} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n5.550e+03 & NA & five & 2015-05-15 & 17:55 & 2018-05-05 04:00 & 1325.810 & row\\_5 \\\\ \nNA & fig & six & 2015-06-15 & NA & 2018-06-06 16:11 & 13.255 & row\\_6 \\\\ \n7.770e+05 & grapefruit & seven & NA & 19:10 & 2018-07-07 05:22 & NA & row\\_7 \\\\ \n8.880e+06 & honeydew & eight & 2015-08-15 & 20:20 & NA & 0.440 & row\\_8 \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\nSource note \\#1\\\\\nSource note \\#2\\\\\n\\end{minipage}\n\\endgroup\n" + [1] "\\begingroup\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{rlcrrrrl}\n\\caption*{\n{\\large Data listing from \\textbf{exibble}} \\\\ \n{\\small \\texttt{exibble} is an R dataset}\n} \\\\ \n\\toprule\n & & & \\multicolumn{3}{c}{timing} & & \\\\ \n\\cmidrule(lr){4-6}\nnum & char & fctr & date & time & datetime & currency & row \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{8}{l}{grp\\_a} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n1.111e-01 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.950 & row\\_1 \\\\ \n2.222e+00 & banana & two & 2015-02-15 & 14:40 & 2018-02-02 14:33 & 17.950 & row\\_2 \\\\ \n3.333e+01 & coconut & three & 2015-03-15 & 15:45 & 2018-03-03 03:44 & 1.390 & row\\_3 \\\\ \n4.444e+02 & durian & four & 2015-04-15 & 16:50 & 2018-04-04 15:55 & 65100.000 & row\\_4 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{8}{l}{grp\\_b} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n5.550e+03 & NA & five & 2015-05-15 & 17:55 & 2018-05-05 04:00 & 1325.810 & row\\_5 \\\\ \nNA & fig & six & 2015-06-15 & NA & 2018-06-06 16:11 & 13.255 & row\\_6 \\\\ \n7.770e+05 & grapefruit & seven & NA & 19:10 & 2018-07-07 05:22 & NA & row\\_7 \\\\ \n8.880e+06 & honeydew & eight & 2015-08-15 & 20:20 & NA & 0.440 & row\\_8 \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\nSource note \\#1\\\\\nSource note \\#2\\\\\n\\end{minipage}\n\\endgroup\n" --- @@ -1473,7 +1473,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{l|rlcrrrrl}\n\\caption*{\n{\\large Data listing from \\textbf{exibble}} \\\\ \n{\\small \\texttt{exibble} is an R dataset}\n} \\\\ \n\\toprule\n & & & & \\multicolumn{3}{c}{timing} & & \\\\ \n\\cmidrule(lr){5-7}\nS.L. & num & char & fctr & date & time & datetime & currency & row \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multirow{4}{*}{grp\\_a} & 1.111e-01 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.950 & row\\_1 \\\\ \n & 2.222e+00 & banana & two & 2015-02-15 & 14:40 & 2018-02-02 14:33 & 17.950 & row\\_2 \\\\ \n & 3.333e+01 & coconut & three & 2015-03-15 & 15:45 & 2018-03-03 03:44 & 1.390 & row\\_3 \\\\ \n & 4.444e+02 & durian & four & 2015-04-15 & 16:50 & 2018-04-04 15:55 & 65100.000 & row\\_4 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multirow{4}{*}{grp\\_b} & 5.550e+03 & NA & five & 2015-05-15 & 17:55 & 2018-05-05 04:00 & 1325.810 & row\\_5 \\\\ \n & NA & fig & six & 2015-06-15 & NA & 2018-06-06 16:11 & 13.255 & row\\_6 \\\\ \n & 7.770e+05 & grapefruit & seven & NA & 19:10 & 2018-07-07 05:22 & NA & row\\_7 \\\\ \n & 8.880e+06 & honeydew & eight & 2015-08-15 & 20:20 & NA & 0.440 & row\\_8 \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\nSource note \\#1\\\\\nSource note \\#2\\\\\n\\end{minipage}\n\\endgroup\n" + [1] "\\begingroup\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{l|rlcrrrrl}\n\\caption*{\n{\\large Data listing from \\textbf{exibble}} \\\\ \n{\\small \\texttt{exibble} is an R dataset}\n} \\\\ \n\\toprule\n & & & & \\multicolumn{3}{c}{timing} & & \\\\ \n\\cmidrule(lr){5-7}\nS.L. & num & char & fctr & date & time & datetime & currency & row \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multirow{4}{*}{grp\\_a} & 1.111e-01 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.950 & row\\_1 \\\\ \n & 2.222e+00 & banana & two & 2015-02-15 & 14:40 & 2018-02-02 14:33 & 17.950 & row\\_2 \\\\ \n & 3.333e+01 & coconut & three & 2015-03-15 & 15:45 & 2018-03-03 03:44 & 1.390 & row\\_3 \\\\ \n & 4.444e+02 & durian & four & 2015-04-15 & 16:50 & 2018-04-04 15:55 & 65100.000 & row\\_4 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multirow{4}{*}{grp\\_b} & 5.550e+03 & NA & five & 2015-05-15 & 17:55 & 2018-05-05 04:00 & 1325.810 & row\\_5 \\\\ \n & NA & fig & six & 2015-06-15 & NA & 2018-06-06 16:11 & 13.255 & row\\_6 \\\\ \n & 7.770e+05 & grapefruit & seven & NA & 19:10 & 2018-07-07 05:22 & NA & row\\_7 \\\\ \n & 8.880e+06 & honeydew & eight & 2015-08-15 & 20:20 & NA & 0.440 & row\\_8 \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\nSource note \\#1\\\\\nSource note \\#2\\\\\n\\end{minipage}\n\\endgroup\n" --- @@ -1933,7 +1933,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{l|rlcrrrrl}\n\\caption*{\n{\\large Data listing from \\textbf{exibble}} \\\\ \n{\\small \\texttt{exibble} is an R dataset}\n} \\\\ \n\\toprule\n & & & & \\multicolumn{3}{c}{timing} & & \\\\ \n\\cmidrule(lr){5-7}\nS.L. & num & char & fctr & date & time & datetime & currency & group \\\\ \n\\midrule\\addlinespace[2.5pt]\nrow\\_1 & 1.111e-01 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.950 & grp\\_a \\\\ \nrow\\_2 & 2.222e+00 & banana & two & 2015-02-15 & 14:40 & 2018-02-02 14:33 & 17.950 & grp\\_a \\\\ \nrow\\_3 & 3.333e+01 & coconut & three & 2015-03-15 & 15:45 & 2018-03-03 03:44 & 1.390 & grp\\_a \\\\ \nrow\\_4 & 4.444e+02 & durian & four & 2015-04-15 & 16:50 & 2018-04-04 15:55 & 65100.000 & grp\\_a \\\\ \nrow\\_5 & 5.550e+03 & NA & five & 2015-05-15 & 17:55 & 2018-05-05 04:00 & 1325.810 & grp\\_b \\\\ \nrow\\_6 & NA & fig & six & 2015-06-15 & NA & 2018-06-06 16:11 & 13.255 & grp\\_b \\\\ \nrow\\_7 & 7.770e+05 & grapefruit & seven & NA & 19:10 & 2018-07-07 05:22 & NA & grp\\_b \\\\ \nrow\\_8 & 8.880e+06 & honeydew & eight & 2015-08-15 & 20:20 & NA & 0.440 & grp\\_b \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\nSource note \\#1\\\\\nSource note \\#2\\\\\n\\end{minipage}\n\\endgroup\n" + [1] "\\begingroup\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{l|rlcrrrrl}\n\\caption*{\n{\\large Data listing from \\textbf{exibble}} \\\\ \n{\\small \\texttt{exibble} is an R dataset}\n} \\\\ \n\\toprule\n & & & & \\multicolumn{3}{c}{timing} & & \\\\ \n\\cmidrule(lr){5-7}\nS.L. & num & char & fctr & date & time & datetime & currency & group \\\\ \n\\midrule\\addlinespace[2.5pt]\nrow\\_1 & 1.111e-01 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.950 & grp\\_a \\\\ \nrow\\_2 & 2.222e+00 & banana & two & 2015-02-15 & 14:40 & 2018-02-02 14:33 & 17.950 & grp\\_a \\\\ \nrow\\_3 & 3.333e+01 & coconut & three & 2015-03-15 & 15:45 & 2018-03-03 03:44 & 1.390 & grp\\_a \\\\ \nrow\\_4 & 4.444e+02 & durian & four & 2015-04-15 & 16:50 & 2018-04-04 15:55 & 65100.000 & grp\\_a \\\\ \nrow\\_5 & 5.550e+03 & NA & five & 2015-05-15 & 17:55 & 2018-05-05 04:00 & 1325.810 & grp\\_b \\\\ \nrow\\_6 & NA & fig & six & 2015-06-15 & NA & 2018-06-06 16:11 & 13.255 & grp\\_b \\\\ \nrow\\_7 & 7.770e+05 & grapefruit & seven & NA & 19:10 & 2018-07-07 05:22 & NA & grp\\_b \\\\ \nrow\\_8 & 8.880e+06 & honeydew & eight & 2015-08-15 & 20:20 & NA & 0.440 & grp\\_b \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\nSource note \\#1\\\\\nSource note \\#2\\\\\n\\end{minipage}\n\\endgroup\n" --- @@ -2393,7 +2393,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{l|rlcrrrrl}\n\\caption*{\n{\\large Data listing from \\textbf{exibble}} \\\\ \n{\\small \\texttt{exibble} is an R dataset}\n} \\\\ \n\\toprule\n & & & & \\multicolumn{3}{c}{timing} & & \\\\ \n\\cmidrule(lr){5-7}\nS.L. & num & char & fctr & date & time & datetime & currency & group \\\\ \n\\midrule\\addlinespace[2.5pt]\nrow\\_1 & 1.111e-01 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.950 & grp\\_a \\\\ \nrow\\_2 & 2.222e+00 & banana & two & 2015-02-15 & 14:40 & 2018-02-02 14:33 & 17.950 & grp\\_a \\\\ \nrow\\_3 & 3.333e+01 & coconut & three & 2015-03-15 & 15:45 & 2018-03-03 03:44 & 1.390 & grp\\_a \\\\ \nrow\\_4 & 4.444e+02 & durian & four & 2015-04-15 & 16:50 & 2018-04-04 15:55 & 65100.000 & grp\\_a \\\\ \nrow\\_5 & 5.550e+03 & NA & five & 2015-05-15 & 17:55 & 2018-05-05 04:00 & 1325.810 & grp\\_b \\\\ \nrow\\_6 & NA & fig & six & 2015-06-15 & NA & 2018-06-06 16:11 & 13.255 & grp\\_b \\\\ \nrow\\_7 & 7.770e+05 & grapefruit & seven & NA & 19:10 & 2018-07-07 05:22 & NA & grp\\_b \\\\ \nrow\\_8 & 8.880e+06 & honeydew & eight & 2015-08-15 & 20:20 & NA & 0.440 & grp\\_b \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\nSource note \\#1\\\\\nSource note \\#2\\\\\n\\end{minipage}\n\\endgroup\n" + [1] "\\begingroup\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{l|rlcrrrrl}\n\\caption*{\n{\\large Data listing from \\textbf{exibble}} \\\\ \n{\\small \\texttt{exibble} is an R dataset}\n} \\\\ \n\\toprule\n & & & & \\multicolumn{3}{c}{timing} & & \\\\ \n\\cmidrule(lr){5-7}\nS.L. & num & char & fctr & date & time & datetime & currency & group \\\\ \n\\midrule\\addlinespace[2.5pt]\nrow\\_1 & 1.111e-01 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.950 & grp\\_a \\\\ \nrow\\_2 & 2.222e+00 & banana & two & 2015-02-15 & 14:40 & 2018-02-02 14:33 & 17.950 & grp\\_a \\\\ \nrow\\_3 & 3.333e+01 & coconut & three & 2015-03-15 & 15:45 & 2018-03-03 03:44 & 1.390 & grp\\_a \\\\ \nrow\\_4 & 4.444e+02 & durian & four & 2015-04-15 & 16:50 & 2018-04-04 15:55 & 65100.000 & grp\\_a \\\\ \nrow\\_5 & 5.550e+03 & NA & five & 2015-05-15 & 17:55 & 2018-05-05 04:00 & 1325.810 & grp\\_b \\\\ \nrow\\_6 & NA & fig & six & 2015-06-15 & NA & 2018-06-06 16:11 & 13.255 & grp\\_b \\\\ \nrow\\_7 & 7.770e+05 & grapefruit & seven & NA & 19:10 & 2018-07-07 05:22 & NA & grp\\_b \\\\ \nrow\\_8 & 8.880e+06 & honeydew & eight & 2015-08-15 & 20:20 & NA & 0.440 & grp\\_b \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\nSource note \\#1\\\\\nSource note \\#2\\\\\n\\end{minipage}\n\\endgroup\n" --- @@ -2850,7 +2850,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{l|rlcrrrr}\n\\caption*{\n{\\large Data listing from \\textbf{exibble}} \\\\ \n{\\small \\texttt{exibble} is an R dataset}\n} \\\\ \n\\toprule\n & & & & \\multicolumn{3}{c}{timing} & \\\\ \n\\cmidrule(lr){5-7}\nS.L. & num & char & fctr & date & time & datetime & currency \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{8}{l}{grp\\_a} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\nrow\\_1 & 1.111e-01 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.950 \\\\ \nrow\\_2 & 2.222e+00 & banana & two & 2015-02-15 & 14:40 & 2018-02-02 14:33 & 17.950 \\\\ \nrow\\_3 & 3.333e+01 & coconut & three & 2015-03-15 & 15:45 & 2018-03-03 03:44 & 1.390 \\\\ \nrow\\_4 & 4.444e+02 & durian & four & 2015-04-15 & 16:50 & 2018-04-04 15:55 & 65100.000 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{8}{l}{grp\\_b} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\nrow\\_5 & 5.550e+03 & NA & five & 2015-05-15 & 17:55 & 2018-05-05 04:00 & 1325.810 \\\\ \nrow\\_6 & NA & fig & six & 2015-06-15 & NA & 2018-06-06 16:11 & 13.255 \\\\ \nrow\\_7 & 7.770e+05 & grapefruit & seven & NA & 19:10 & 2018-07-07 05:22 & NA \\\\ \nrow\\_8 & 8.880e+06 & honeydew & eight & 2015-08-15 & 20:20 & NA & 0.440 \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\nSource note \\#1\\\\\nSource note \\#2\\\\\n\\end{minipage}\n\\endgroup\n" + [1] "\\begingroup\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{l|rlcrrrr}\n\\caption*{\n{\\large Data listing from \\textbf{exibble}} \\\\ \n{\\small \\texttt{exibble} is an R dataset}\n} \\\\ \n\\toprule\n & & & & \\multicolumn{3}{c}{timing} & \\\\ \n\\cmidrule(lr){5-7}\nS.L. & num & char & fctr & date & time & datetime & currency \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{8}{l}{grp\\_a} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\nrow\\_1 & 1.111e-01 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.950 \\\\ \nrow\\_2 & 2.222e+00 & banana & two & 2015-02-15 & 14:40 & 2018-02-02 14:33 & 17.950 \\\\ \nrow\\_3 & 3.333e+01 & coconut & three & 2015-03-15 & 15:45 & 2018-03-03 03:44 & 1.390 \\\\ \nrow\\_4 & 4.444e+02 & durian & four & 2015-04-15 & 16:50 & 2018-04-04 15:55 & 65100.000 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{8}{l}{grp\\_b} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\nrow\\_5 & 5.550e+03 & NA & five & 2015-05-15 & 17:55 & 2018-05-05 04:00 & 1325.810 \\\\ \nrow\\_6 & NA & fig & six & 2015-06-15 & NA & 2018-06-06 16:11 & 13.255 \\\\ \nrow\\_7 & 7.770e+05 & grapefruit & seven & NA & 19:10 & 2018-07-07 05:22 & NA \\\\ \nrow\\_8 & 8.880e+06 & honeydew & eight & 2015-08-15 & 20:20 & NA & 0.440 \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\nSource note \\#1\\\\\nSource note \\#2\\\\\n\\end{minipage}\n\\endgroup\n" --- @@ -3287,7 +3287,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{l|l|rlcrrrr}\n\\caption*{\n{\\large Data listing from \\textbf{exibble}} \\\\ \n{\\small \\texttt{exibble} is an R dataset}\n} \\\\ \n\\toprule\n\\multicolumn{2}{l}{} & & & & \\multicolumn{3}{c}{timing} & \\\\ \n\\cmidrule(lr){6-8}\n\\multicolumn{2}{c}{S.L.} & num & char & fctr & date & time & datetime & currency \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multirow{4}{*}{grp\\_a} & row\\_1 & 1.111e-01 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.950 \\\\ \n & row\\_2 & 2.222e+00 & banana & two & 2015-02-15 & 14:40 & 2018-02-02 14:33 & 17.950 \\\\ \n & row\\_3 & 3.333e+01 & coconut & three & 2015-03-15 & 15:45 & 2018-03-03 03:44 & 1.390 \\\\ \n & row\\_4 & 4.444e+02 & durian & four & 2015-04-15 & 16:50 & 2018-04-04 15:55 & 65100.000 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multirow{4}{*}{grp\\_b} & row\\_5 & 5.550e+03 & NA & five & 2015-05-15 & 17:55 & 2018-05-05 04:00 & 1325.810 \\\\ \n & row\\_6 & NA & fig & six & 2015-06-15 & NA & 2018-06-06 16:11 & 13.255 \\\\ \n & row\\_7 & 7.770e+05 & grapefruit & seven & NA & 19:10 & 2018-07-07 05:22 & NA \\\\ \n & row\\_8 & 8.880e+06 & honeydew & eight & 2015-08-15 & 20:20 & NA & 0.440 \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\nSource note \\#1\\\\\nSource note \\#2\\\\\n\\end{minipage}\n\\endgroup\n" + [1] "\\begingroup\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{l|l|rlcrrrr}\n\\caption*{\n{\\large Data listing from \\textbf{exibble}} \\\\ \n{\\small \\texttt{exibble} is an R dataset}\n} \\\\ \n\\toprule\n\\multicolumn{2}{l}{} & & & & \\multicolumn{3}{c}{timing} & \\\\ \n\\cmidrule(lr){6-8}\n\\multicolumn{2}{c}{S.L.} & num & char & fctr & date & time & datetime & currency \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multirow{4}{*}{grp\\_a} & row\\_1 & 1.111e-01 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.950 \\\\ \n & row\\_2 & 2.222e+00 & banana & two & 2015-02-15 & 14:40 & 2018-02-02 14:33 & 17.950 \\\\ \n & row\\_3 & 3.333e+01 & coconut & three & 2015-03-15 & 15:45 & 2018-03-03 03:44 & 1.390 \\\\ \n & row\\_4 & 4.444e+02 & durian & four & 2015-04-15 & 16:50 & 2018-04-04 15:55 & 65100.000 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multirow{4}{*}{grp\\_b} & row\\_5 & 5.550e+03 & NA & five & 2015-05-15 & 17:55 & 2018-05-05 04:00 & 1325.810 \\\\ \n & row\\_6 & NA & fig & six & 2015-06-15 & NA & 2018-06-06 16:11 & 13.255 \\\\ \n & row\\_7 & 7.770e+05 & grapefruit & seven & NA & 19:10 & 2018-07-07 05:22 & NA \\\\ \n & row\\_8 & 8.880e+06 & honeydew & eight & 2015-08-15 & 20:20 & NA & 0.440 \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\nSource note \\#1\\\\\nSource note \\#2\\\\\n\\end{minipage}\n\\endgroup\n" --- @@ -3786,7 +3786,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{l|rlcrrrrll}\n\\caption*{\n{\\large Data listing from \\textbf{exibble}} \\\\ \n{\\small \\texttt{exibble} is an R dataset}\n} \\\\ \n\\toprule\n & & & & \\multicolumn{3}{c}{timing} & & & \\\\ \n\\cmidrule(lr){5-7}\nS.L. & num & char & fctr & date & time & datetime & currency & row & group \\\\ \n\\midrule\\addlinespace[2.5pt]\n & 1.111e-01 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.950 & row\\_1 & grp\\_a \\\\ \n & 2.222e+00 & banana & two & 2015-02-15 & 14:40 & 2018-02-02 14:33 & 17.950 & row\\_2 & grp\\_a \\\\ \n & 3.333e+01 & coconut & three & 2015-03-15 & 15:45 & 2018-03-03 03:44 & 1.390 & row\\_3 & grp\\_a \\\\ \n & 4.444e+02 & durian & four & 2015-04-15 & 16:50 & 2018-04-04 15:55 & 65100.000 & row\\_4 & grp\\_a \\\\ \n & 5.550e+03 & NA & five & 2015-05-15 & 17:55 & 2018-05-05 04:00 & 1325.810 & row\\_5 & grp\\_b \\\\ \n & NA & fig & six & 2015-06-15 & NA & 2018-06-06 16:11 & 13.255 & row\\_6 & grp\\_b \\\\ \n & 7.770e+05 & grapefruit & seven & NA & 19:10 & 2018-07-07 05:22 & NA & row\\_7 & grp\\_b \\\\ \n & 8.880e+06 & honeydew & eight & 2015-08-15 & 20:20 & NA & 0.440 & row\\_8 & grp\\_b \\\\ \n\\midrule \n\\midrule \nmin & 0.11 & — & — & — & — & — & 0.44 & — & — \\\\ \nmax & 8880000.00 & — & — & — & — & — & 65100.00 & — & — \\\\ \navg & 1380432.87 & — & — & — & — & — & 9501.26 & — & — \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\nSource note \\#1\\\\\nSource note \\#2\\\\\n\\end{minipage}\n\\endgroup\n" + [1] "\\begingroup\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{l|rlcrrrrll}\n\\caption*{\n{\\large Data listing from \\textbf{exibble}} \\\\ \n{\\small \\texttt{exibble} is an R dataset}\n} \\\\ \n\\toprule\n & & & & \\multicolumn{3}{c}{timing} & & & \\\\ \n\\cmidrule(lr){5-7}\nS.L. & num & char & fctr & date & time & datetime & currency & row & group \\\\ \n\\midrule\\addlinespace[2.5pt]\n & 1.111e-01 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.950 & row\\_1 & grp\\_a \\\\ \n & 2.222e+00 & banana & two & 2015-02-15 & 14:40 & 2018-02-02 14:33 & 17.950 & row\\_2 & grp\\_a \\\\ \n & 3.333e+01 & coconut & three & 2015-03-15 & 15:45 & 2018-03-03 03:44 & 1.390 & row\\_3 & grp\\_a \\\\ \n & 4.444e+02 & durian & four & 2015-04-15 & 16:50 & 2018-04-04 15:55 & 65100.000 & row\\_4 & grp\\_a \\\\ \n & 5.550e+03 & NA & five & 2015-05-15 & 17:55 & 2018-05-05 04:00 & 1325.810 & row\\_5 & grp\\_b \\\\ \n & NA & fig & six & 2015-06-15 & NA & 2018-06-06 16:11 & 13.255 & row\\_6 & grp\\_b \\\\ \n & 7.770e+05 & grapefruit & seven & NA & 19:10 & 2018-07-07 05:22 & NA & row\\_7 & grp\\_b \\\\ \n & 8.880e+06 & honeydew & eight & 2015-08-15 & 20:20 & NA & 0.440 & row\\_8 & grp\\_b \\\\ \n\\midrule \n\\midrule \nmin & 0.11 & — & — & — & — & — & 0.44 & — & — \\\\ \nmax & 8880000.00 & — & — & — & — & — & 65100.00 & — & — \\\\ \navg & 1380432.87 & — & — & — & — & — & 9501.26 & — & — \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\nSource note \\#1\\\\\nSource note \\#2\\\\\n\\end{minipage}\n\\endgroup\n" --- @@ -4417,7 +4417,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{l|rlcrrrrll}\n\\caption*{\n{\\large Data listing from \\textbf{exibble}} \\\\ \n{\\small \\texttt{exibble} is an R dataset}\n} \\\\ \n\\toprule\n & & & & \\multicolumn{3}{c}{timing} & & & \\\\ \n\\cmidrule(lr){5-7}\nS.L. & num & char & fctr & date & time & datetime & currency & row & group \\\\ \n\\midrule\\addlinespace[2.5pt]\n & 1.111e-01 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.950 & row\\_1 & grp\\_a \\\\ \n & 2.222e+00 & banana & two & 2015-02-15 & 14:40 & 2018-02-02 14:33 & 17.950 & row\\_2 & grp\\_a \\\\ \n & 3.333e+01 & coconut & three & 2015-03-15 & 15:45 & 2018-03-03 03:44 & 1.390 & row\\_3 & grp\\_a \\\\ \n & 4.444e+02 & durian & four & 2015-04-15 & 16:50 & 2018-04-04 15:55 & 65100.000 & row\\_4 & grp\\_a \\\\ \n & 5.550e+03 & NA & five & 2015-05-15 & 17:55 & 2018-05-05 04:00 & 1325.810 & row\\_5 & grp\\_b \\\\ \n & NA & fig & six & 2015-06-15 & NA & 2018-06-06 16:11 & 13.255 & row\\_6 & grp\\_b \\\\ \n & 7.770e+05 & grapefruit & seven & NA & 19:10 & 2018-07-07 05:22 & NA & row\\_7 & grp\\_b \\\\ \n & 8.880e+06 & honeydew & eight & 2015-08-15 & 20:20 & NA & 0.440 & row\\_8 & grp\\_b \\\\ \n\\midrule \n\\midrule \nmin & 0.11 & — & — & — & — & — & 0.44 & — & — \\\\ \nmax & 8880000.00 & — & — & — & — & — & 65100.00 & — & — \\\\ \navg & 1380432.87 & — & — & — & — & — & 9501.26 & — & — \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\nSource note \\#1\\\\\nSource note \\#2\\\\\n\\end{minipage}\n\\endgroup\n" + [1] "\\begingroup\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{l|rlcrrrrll}\n\\caption*{\n{\\large Data listing from \\textbf{exibble}} \\\\ \n{\\small \\texttt{exibble} is an R dataset}\n} \\\\ \n\\toprule\n & & & & \\multicolumn{3}{c}{timing} & & & \\\\ \n\\cmidrule(lr){5-7}\nS.L. & num & char & fctr & date & time & datetime & currency & row & group \\\\ \n\\midrule\\addlinespace[2.5pt]\n & 1.111e-01 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.950 & row\\_1 & grp\\_a \\\\ \n & 2.222e+00 & banana & two & 2015-02-15 & 14:40 & 2018-02-02 14:33 & 17.950 & row\\_2 & grp\\_a \\\\ \n & 3.333e+01 & coconut & three & 2015-03-15 & 15:45 & 2018-03-03 03:44 & 1.390 & row\\_3 & grp\\_a \\\\ \n & 4.444e+02 & durian & four & 2015-04-15 & 16:50 & 2018-04-04 15:55 & 65100.000 & row\\_4 & grp\\_a \\\\ \n & 5.550e+03 & NA & five & 2015-05-15 & 17:55 & 2018-05-05 04:00 & 1325.810 & row\\_5 & grp\\_b \\\\ \n & NA & fig & six & 2015-06-15 & NA & 2018-06-06 16:11 & 13.255 & row\\_6 & grp\\_b \\\\ \n & 7.770e+05 & grapefruit & seven & NA & 19:10 & 2018-07-07 05:22 & NA & row\\_7 & grp\\_b \\\\ \n & 8.880e+06 & honeydew & eight & 2015-08-15 & 20:20 & NA & 0.440 & row\\_8 & grp\\_b \\\\ \n\\midrule \n\\midrule \nmin & 0.11 & — & — & — & — & — & 0.44 & — & — \\\\ \nmax & 8880000.00 & — & — & — & — & — & 65100.00 & — & — \\\\ \navg & 1380432.87 & — & — & — & — & — & 9501.26 & — & — \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\nSource note \\#1\\\\\nSource note \\#2\\\\\n\\end{minipage}\n\\endgroup\n" --- @@ -5096,7 +5096,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{l|rlcrrrrl}\n\\caption*{\n{\\large Data listing from \\textbf{exibble}} \\\\ \n{\\small \\texttt{exibble} is an R dataset}\n} \\\\ \n\\toprule\n & & & & \\multicolumn{3}{c}{timing} & & \\\\ \n\\cmidrule(lr){5-7}\nS.L. & num & char & fctr & date & time & datetime & currency & row \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{9}{l}{grp\\_a} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n & 1.111e-01 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.950 & row\\_1 \\\\ \n & 2.222e+00 & banana & two & 2015-02-15 & 14:40 & 2018-02-02 14:33 & 17.950 & row\\_2 \\\\ \n & 3.333e+01 & coconut & three & 2015-03-15 & 15:45 & 2018-03-03 03:44 & 1.390 & row\\_3 \\\\ \n & 4.444e+02 & durian & four & 2015-04-15 & 16:50 & 2018-04-04 15:55 & 65100.000 & row\\_4 \\\\ \n\\midrule \nmin & 0.11 & — & — & — & — & — & 1.39 & — \\\\ \nmax & 444.40 & — & — & — & — & — & 65100.00 & — \\\\ \navg & 120.02 & — & — & — & — & — & 16292.32 & — \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{9}{l}{grp\\_b} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n & 5.550e+03 & NA & five & 2015-05-15 & 17:55 & 2018-05-05 04:00 & 1325.810 & row\\_5 \\\\ \n & NA & fig & six & 2015-06-15 & NA & 2018-06-06 16:11 & 13.255 & row\\_6 \\\\ \n & 7.770e+05 & grapefruit & seven & NA & 19:10 & 2018-07-07 05:22 & NA & row\\_7 \\\\ \n & 8.880e+06 & honeydew & eight & 2015-08-15 & 20:20 & NA & 0.440 & row\\_8 \\\\ \n\\midrule \nmin & 5550.00 & — & — & — & — & — & 0.44 & — \\\\ \nmax & 8880000.00 & — & — & — & — & — & 1325.81 & — \\\\ \navg & 3220850.00 & — & — & — & — & — & 446.50 & — \\\\ \n\\midrule \n\\midrule \nmin & 0.11 & — & — & — & — & — & 0.44 & — \\\\ \nmax & 8880000.00 & — & — & — & — & — & 65100.00 & — \\\\ \navg & 1380432.87 & — & — & — & — & — & 9501.26 & — \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\nSource note \\#1\\\\\nSource note \\#2\\\\\n\\end{minipage}\n\\endgroup\n" + [1] "\\begingroup\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{l|rlcrrrrl}\n\\caption*{\n{\\large Data listing from \\textbf{exibble}} \\\\ \n{\\small \\texttt{exibble} is an R dataset}\n} \\\\ \n\\toprule\n & & & & \\multicolumn{3}{c}{timing} & & \\\\ \n\\cmidrule(lr){5-7}\nS.L. & num & char & fctr & date & time & datetime & currency & row \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{9}{l}{grp\\_a} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n & 1.111e-01 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.950 & row\\_1 \\\\ \n & 2.222e+00 & banana & two & 2015-02-15 & 14:40 & 2018-02-02 14:33 & 17.950 & row\\_2 \\\\ \n & 3.333e+01 & coconut & three & 2015-03-15 & 15:45 & 2018-03-03 03:44 & 1.390 & row\\_3 \\\\ \n & 4.444e+02 & durian & four & 2015-04-15 & 16:50 & 2018-04-04 15:55 & 65100.000 & row\\_4 \\\\ \n\\midrule \nmin & 0.11 & — & — & — & — & — & 1.39 & — \\\\ \nmax & 444.40 & — & — & — & — & — & 65100.00 & — \\\\ \navg & 120.02 & — & — & — & — & — & 16292.32 & — \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{9}{l}{grp\\_b} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n & 5.550e+03 & NA & five & 2015-05-15 & 17:55 & 2018-05-05 04:00 & 1325.810 & row\\_5 \\\\ \n & NA & fig & six & 2015-06-15 & NA & 2018-06-06 16:11 & 13.255 & row\\_6 \\\\ \n & 7.770e+05 & grapefruit & seven & NA & 19:10 & 2018-07-07 05:22 & NA & row\\_7 \\\\ \n & 8.880e+06 & honeydew & eight & 2015-08-15 & 20:20 & NA & 0.440 & row\\_8 \\\\ \n\\midrule \nmin & 5550.00 & — & — & — & — & — & 0.44 & — \\\\ \nmax & 8880000.00 & — & — & — & — & — & 1325.81 & — \\\\ \navg & 3220850.00 & — & — & — & — & — & 446.50 & — \\\\ \n\\midrule \n\\midrule \nmin & 0.11 & — & — & — & — & — & 0.44 & — \\\\ \nmax & 8880000.00 & — & — & — & — & — & 65100.00 & — \\\\ \navg & 1380432.87 & — & — & — & — & — & 9501.26 & — \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\nSource note \\#1\\\\\nSource note \\#2\\\\\n\\end{minipage}\n\\endgroup\n" --- @@ -5924,7 +5924,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{l|rlcrrrrl}\n\\caption*{\n{\\large Data listing from \\textbf{exibble}} \\\\ \n{\\small \\texttt{exibble} is an R dataset}\n} \\\\ \n\\toprule\n & & & & \\multicolumn{3}{c}{timing} & & \\\\ \n\\cmidrule(lr){5-7}\nS.L. & num & char & fctr & date & time & datetime & currency & row \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multirow{7}{*}{grp\\_a} & 1.111e-01 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.950 & row\\_1 \\\\ \n & 2.222e+00 & banana & two & 2015-02-15 & 14:40 & 2018-02-02 14:33 & 17.950 & row\\_2 \\\\ \n & 3.333e+01 & coconut & three & 2015-03-15 & 15:45 & 2018-03-03 03:44 & 1.390 & row\\_3 \\\\ \n & 4.444e+02 & durian & four & 2015-04-15 & 16:50 & 2018-04-04 15:55 & 65100.000 & row\\_4 \\\\ \n\\midrule \nmin & 0.11 & — & — & — & — & — & 1.39 & — \\\\ \nmax & 444.40 & — & — & — & — & — & 65100.00 & — \\\\ \navg & 120.02 & — & — & — & — & — & 16292.32 & — \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multirow{7}{*}{grp\\_b} & 5.550e+03 & NA & five & 2015-05-15 & 17:55 & 2018-05-05 04:00 & 1325.810 & row\\_5 \\\\ \n & NA & fig & six & 2015-06-15 & NA & 2018-06-06 16:11 & 13.255 & row\\_6 \\\\ \n & 7.770e+05 & grapefruit & seven & NA & 19:10 & 2018-07-07 05:22 & NA & row\\_7 \\\\ \n & 8.880e+06 & honeydew & eight & 2015-08-15 & 20:20 & NA & 0.440 & row\\_8 \\\\ \n\\midrule \nmin & 5550.00 & — & — & — & — & — & 0.44 & — \\\\ \nmax & 8880000.00 & — & — & — & — & — & 1325.81 & — \\\\ \navg & 3220850.00 & — & — & — & — & — & 446.50 & — \\\\ \n\\midrule \n\\midrule \nmin & 0.11 & — & — & — & — & — & 0.44 & — \\\\ \nmax & 8880000.00 & — & — & — & — & — & 65100.00 & — \\\\ \navg & 1380432.87 & — & — & — & — & — & 9501.26 & — \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\nSource note \\#1\\\\\nSource note \\#2\\\\\n\\end{minipage}\n\\endgroup\n" + [1] "\\begingroup\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{l|rlcrrrrl}\n\\caption*{\n{\\large Data listing from \\textbf{exibble}} \\\\ \n{\\small \\texttt{exibble} is an R dataset}\n} \\\\ \n\\toprule\n & & & & \\multicolumn{3}{c}{timing} & & \\\\ \n\\cmidrule(lr){5-7}\nS.L. & num & char & fctr & date & time & datetime & currency & row \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multirow{7}{*}{grp\\_a} & 1.111e-01 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.950 & row\\_1 \\\\ \n & 2.222e+00 & banana & two & 2015-02-15 & 14:40 & 2018-02-02 14:33 & 17.950 & row\\_2 \\\\ \n & 3.333e+01 & coconut & three & 2015-03-15 & 15:45 & 2018-03-03 03:44 & 1.390 & row\\_3 \\\\ \n & 4.444e+02 & durian & four & 2015-04-15 & 16:50 & 2018-04-04 15:55 & 65100.000 & row\\_4 \\\\ \n\\midrule \nmin & 0.11 & — & — & — & — & — & 1.39 & — \\\\ \nmax & 444.40 & — & — & — & — & — & 65100.00 & — \\\\ \navg & 120.02 & — & — & — & — & — & 16292.32 & — \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multirow{7}{*}{grp\\_b} & 5.550e+03 & NA & five & 2015-05-15 & 17:55 & 2018-05-05 04:00 & 1325.810 & row\\_5 \\\\ \n & NA & fig & six & 2015-06-15 & NA & 2018-06-06 16:11 & 13.255 & row\\_6 \\\\ \n & 7.770e+05 & grapefruit & seven & NA & 19:10 & 2018-07-07 05:22 & NA & row\\_7 \\\\ \n & 8.880e+06 & honeydew & eight & 2015-08-15 & 20:20 & NA & 0.440 & row\\_8 \\\\ \n\\midrule \nmin & 5550.00 & — & — & — & — & — & 0.44 & — \\\\ \nmax & 8880000.00 & — & — & — & — & — & 1325.81 & — \\\\ \navg & 3220850.00 & — & — & — & — & — & 446.50 & — \\\\ \n\\midrule \n\\midrule \nmin & 0.11 & — & — & — & — & — & 0.44 & — \\\\ \nmax & 8880000.00 & — & — & — & — & — & 65100.00 & — \\\\ \navg & 1380432.87 & — & — & — & — & — & 9501.26 & — \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\nSource note \\#1\\\\\nSource note \\#2\\\\\n\\end{minipage}\n\\endgroup\n" --- @@ -6690,7 +6690,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{l|rlcrrrrl}\n\\caption*{\n{\\large Data listing from \\textbf{exibble}} \\\\ \n{\\small \\texttt{exibble} is an R dataset}\n} \\\\ \n\\toprule\n & & & & \\multicolumn{3}{c}{timing} & & \\\\ \n\\cmidrule(lr){5-7}\nS.L. & num & char & fctr & date & time & datetime & currency & group \\\\ \n\\midrule\\addlinespace[2.5pt]\nrow\\_1 & 1.111e-01 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.950 & grp\\_a \\\\ \nrow\\_2 & 2.222e+00 & banana & two & 2015-02-15 & 14:40 & 2018-02-02 14:33 & 17.950 & grp\\_a \\\\ \nrow\\_3 & 3.333e+01 & coconut & three & 2015-03-15 & 15:45 & 2018-03-03 03:44 & 1.390 & grp\\_a \\\\ \nrow\\_4 & 4.444e+02 & durian & four & 2015-04-15 & 16:50 & 2018-04-04 15:55 & 65100.000 & grp\\_a \\\\ \nrow\\_5 & 5.550e+03 & NA & five & 2015-05-15 & 17:55 & 2018-05-05 04:00 & 1325.810 & grp\\_b \\\\ \nrow\\_6 & NA & fig & six & 2015-06-15 & NA & 2018-06-06 16:11 & 13.255 & grp\\_b \\\\ \nrow\\_7 & 7.770e+05 & grapefruit & seven & NA & 19:10 & 2018-07-07 05:22 & NA & grp\\_b \\\\ \nrow\\_8 & 8.880e+06 & honeydew & eight & 2015-08-15 & 20:20 & NA & 0.440 & grp\\_b \\\\ \n\\midrule \n\\midrule \nmin & 0.11 & — & — & — & — & — & 0.44 & — \\\\ \nmax & 8880000.00 & — & — & — & — & — & 65100.00 & — \\\\ \navg & 1380432.87 & — & — & — & — & — & 9501.26 & — \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\nSource note \\#1\\\\\nSource note \\#2\\\\\n\\end{minipage}\n\\endgroup\n" + [1] "\\begingroup\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{l|rlcrrrrl}\n\\caption*{\n{\\large Data listing from \\textbf{exibble}} \\\\ \n{\\small \\texttt{exibble} is an R dataset}\n} \\\\ \n\\toprule\n & & & & \\multicolumn{3}{c}{timing} & & \\\\ \n\\cmidrule(lr){5-7}\nS.L. & num & char & fctr & date & time & datetime & currency & group \\\\ \n\\midrule\\addlinespace[2.5pt]\nrow\\_1 & 1.111e-01 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.950 & grp\\_a \\\\ \nrow\\_2 & 2.222e+00 & banana & two & 2015-02-15 & 14:40 & 2018-02-02 14:33 & 17.950 & grp\\_a \\\\ \nrow\\_3 & 3.333e+01 & coconut & three & 2015-03-15 & 15:45 & 2018-03-03 03:44 & 1.390 & grp\\_a \\\\ \nrow\\_4 & 4.444e+02 & durian & four & 2015-04-15 & 16:50 & 2018-04-04 15:55 & 65100.000 & grp\\_a \\\\ \nrow\\_5 & 5.550e+03 & NA & five & 2015-05-15 & 17:55 & 2018-05-05 04:00 & 1325.810 & grp\\_b \\\\ \nrow\\_6 & NA & fig & six & 2015-06-15 & NA & 2018-06-06 16:11 & 13.255 & grp\\_b \\\\ \nrow\\_7 & 7.770e+05 & grapefruit & seven & NA & 19:10 & 2018-07-07 05:22 & NA & grp\\_b \\\\ \nrow\\_8 & 8.880e+06 & honeydew & eight & 2015-08-15 & 20:20 & NA & 0.440 & grp\\_b \\\\ \n\\midrule \n\\midrule \nmin & 0.11 & — & — & — & — & — & 0.44 & — \\\\ \nmax & 8880000.00 & — & — & — & — & — & 65100.00 & — \\\\ \navg & 1380432.87 & — & — & — & — & — & 9501.26 & — \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\nSource note \\#1\\\\\nSource note \\#2\\\\\n\\end{minipage}\n\\endgroup\n" --- @@ -7270,7 +7270,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{l|rlcrrrrl}\n\\caption*{\n{\\large Data listing from \\textbf{exibble}} \\\\ \n{\\small \\texttt{exibble} is an R dataset}\n} \\\\ \n\\toprule\n & & & & \\multicolumn{3}{c}{timing} & & \\\\ \n\\cmidrule(lr){5-7}\nS.L. & num & char & fctr & date & time & datetime & currency & group \\\\ \n\\midrule\\addlinespace[2.5pt]\nrow\\_1 & 1.111e-01 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.950 & grp\\_a \\\\ \nrow\\_2 & 2.222e+00 & banana & two & 2015-02-15 & 14:40 & 2018-02-02 14:33 & 17.950 & grp\\_a \\\\ \nrow\\_3 & 3.333e+01 & coconut & three & 2015-03-15 & 15:45 & 2018-03-03 03:44 & 1.390 & grp\\_a \\\\ \nrow\\_4 & 4.444e+02 & durian & four & 2015-04-15 & 16:50 & 2018-04-04 15:55 & 65100.000 & grp\\_a \\\\ \nrow\\_5 & 5.550e+03 & NA & five & 2015-05-15 & 17:55 & 2018-05-05 04:00 & 1325.810 & grp\\_b \\\\ \nrow\\_6 & NA & fig & six & 2015-06-15 & NA & 2018-06-06 16:11 & 13.255 & grp\\_b \\\\ \nrow\\_7 & 7.770e+05 & grapefruit & seven & NA & 19:10 & 2018-07-07 05:22 & NA & grp\\_b \\\\ \nrow\\_8 & 8.880e+06 & honeydew & eight & 2015-08-15 & 20:20 & NA & 0.440 & grp\\_b \\\\ \n\\midrule \n\\midrule \nmin & 0.11 & — & — & — & — & — & 0.44 & — \\\\ \nmax & 8880000.00 & — & — & — & — & — & 65100.00 & — \\\\ \navg & 1380432.87 & — & — & — & — & — & 9501.26 & — \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\nSource note \\#1\\\\\nSource note \\#2\\\\\n\\end{minipage}\n\\endgroup\n" + [1] "\\begingroup\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{l|rlcrrrrl}\n\\caption*{\n{\\large Data listing from \\textbf{exibble}} \\\\ \n{\\small \\texttt{exibble} is an R dataset}\n} \\\\ \n\\toprule\n & & & & \\multicolumn{3}{c}{timing} & & \\\\ \n\\cmidrule(lr){5-7}\nS.L. & num & char & fctr & date & time & datetime & currency & group \\\\ \n\\midrule\\addlinespace[2.5pt]\nrow\\_1 & 1.111e-01 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.950 & grp\\_a \\\\ \nrow\\_2 & 2.222e+00 & banana & two & 2015-02-15 & 14:40 & 2018-02-02 14:33 & 17.950 & grp\\_a \\\\ \nrow\\_3 & 3.333e+01 & coconut & three & 2015-03-15 & 15:45 & 2018-03-03 03:44 & 1.390 & grp\\_a \\\\ \nrow\\_4 & 4.444e+02 & durian & four & 2015-04-15 & 16:50 & 2018-04-04 15:55 & 65100.000 & grp\\_a \\\\ \nrow\\_5 & 5.550e+03 & NA & five & 2015-05-15 & 17:55 & 2018-05-05 04:00 & 1325.810 & grp\\_b \\\\ \nrow\\_6 & NA & fig & six & 2015-06-15 & NA & 2018-06-06 16:11 & 13.255 & grp\\_b \\\\ \nrow\\_7 & 7.770e+05 & grapefruit & seven & NA & 19:10 & 2018-07-07 05:22 & NA & grp\\_b \\\\ \nrow\\_8 & 8.880e+06 & honeydew & eight & 2015-08-15 & 20:20 & NA & 0.440 & grp\\_b \\\\ \n\\midrule \n\\midrule \nmin & 0.11 & — & — & — & — & — & 0.44 & — \\\\ \nmax & 8880000.00 & — & — & — & — & — & 65100.00 & — \\\\ \navg & 1380432.87 & — & — & — & — & — & 9501.26 & — \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\nSource note \\#1\\\\\nSource note \\#2\\\\\n\\end{minipage}\n\\endgroup\n" --- @@ -7892,7 +7892,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{l|rlcrrrr}\n\\caption*{\n{\\large Data listing from \\textbf{exibble}} \\\\ \n{\\small \\texttt{exibble} is an R dataset}\n} \\\\ \n\\toprule\n & & & & \\multicolumn{3}{c}{timing} & \\\\ \n\\cmidrule(lr){5-7}\nS.L. & num & char & fctr & date & time & datetime & currency \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{8}{l}{grp\\_a} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\nrow\\_1 & 1.111e-01 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.950 \\\\ \nrow\\_2 & 2.222e+00 & banana & two & 2015-02-15 & 14:40 & 2018-02-02 14:33 & 17.950 \\\\ \nrow\\_3 & 3.333e+01 & coconut & three & 2015-03-15 & 15:45 & 2018-03-03 03:44 & 1.390 \\\\ \nrow\\_4 & 4.444e+02 & durian & four & 2015-04-15 & 16:50 & 2018-04-04 15:55 & 65100.000 \\\\ \n\\midrule \nmin & 0.11 & — & — & — & — & — & 1.39 \\\\ \nmax & 444.40 & — & — & — & — & — & 65100.00 \\\\ \navg & 120.02 & — & — & — & — & — & 16292.32 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{8}{l}{grp\\_b} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\nrow\\_5 & 5.550e+03 & NA & five & 2015-05-15 & 17:55 & 2018-05-05 04:00 & 1325.810 \\\\ \nrow\\_6 & NA & fig & six & 2015-06-15 & NA & 2018-06-06 16:11 & 13.255 \\\\ \nrow\\_7 & 7.770e+05 & grapefruit & seven & NA & 19:10 & 2018-07-07 05:22 & NA \\\\ \nrow\\_8 & 8.880e+06 & honeydew & eight & 2015-08-15 & 20:20 & NA & 0.440 \\\\ \n\\midrule \nmin & 5550.00 & — & — & — & — & — & 0.44 \\\\ \nmax & 8880000.00 & — & — & — & — & — & 1325.81 \\\\ \navg & 3220850.00 & — & — & — & — & — & 446.50 \\\\ \n\\midrule \n\\midrule \nmin & 0.11 & — & — & — & — & — & 0.44 \\\\ \nmax & 8880000.00 & — & — & — & — & — & 65100.00 \\\\ \navg & 1380432.87 & — & — & — & — & — & 9501.26 \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\nSource note \\#1\\\\\nSource note \\#2\\\\\n\\end{minipage}\n\\endgroup\n" + [1] "\\begingroup\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{l|rlcrrrr}\n\\caption*{\n{\\large Data listing from \\textbf{exibble}} \\\\ \n{\\small \\texttt{exibble} is an R dataset}\n} \\\\ \n\\toprule\n & & & & \\multicolumn{3}{c}{timing} & \\\\ \n\\cmidrule(lr){5-7}\nS.L. & num & char & fctr & date & time & datetime & currency \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{8}{l}{grp\\_a} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\nrow\\_1 & 1.111e-01 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.950 \\\\ \nrow\\_2 & 2.222e+00 & banana & two & 2015-02-15 & 14:40 & 2018-02-02 14:33 & 17.950 \\\\ \nrow\\_3 & 3.333e+01 & coconut & three & 2015-03-15 & 15:45 & 2018-03-03 03:44 & 1.390 \\\\ \nrow\\_4 & 4.444e+02 & durian & four & 2015-04-15 & 16:50 & 2018-04-04 15:55 & 65100.000 \\\\ \n\\midrule \nmin & 0.11 & — & — & — & — & — & 1.39 \\\\ \nmax & 444.40 & — & — & — & — & — & 65100.00 \\\\ \navg & 120.02 & — & — & — & — & — & 16292.32 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{8}{l}{grp\\_b} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\nrow\\_5 & 5.550e+03 & NA & five & 2015-05-15 & 17:55 & 2018-05-05 04:00 & 1325.810 \\\\ \nrow\\_6 & NA & fig & six & 2015-06-15 & NA & 2018-06-06 16:11 & 13.255 \\\\ \nrow\\_7 & 7.770e+05 & grapefruit & seven & NA & 19:10 & 2018-07-07 05:22 & NA \\\\ \nrow\\_8 & 8.880e+06 & honeydew & eight & 2015-08-15 & 20:20 & NA & 0.440 \\\\ \n\\midrule \nmin & 5550.00 & — & — & — & — & — & 0.44 \\\\ \nmax & 8880000.00 & — & — & — & — & — & 1325.81 \\\\ \navg & 3220850.00 & — & — & — & — & — & 446.50 \\\\ \n\\midrule \n\\midrule \nmin & 0.11 & — & — & — & — & — & 0.44 \\\\ \nmax & 8880000.00 & — & — & — & — & — & 65100.00 \\\\ \navg & 1380432.87 & — & — & — & — & — & 9501.26 \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\nSource note \\#1\\\\\nSource note \\#2\\\\\n\\end{minipage}\n\\endgroup\n" --- @@ -8653,7 +8653,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{l|l|rlcrrrr}\n\\caption*{\n{\\large Data listing from \\textbf{exibble}} \\\\ \n{\\small \\texttt{exibble} is an R dataset}\n} \\\\ \n\\toprule\n\\multicolumn{2}{l}{} & & & & \\multicolumn{3}{c}{timing} & \\\\ \n\\cmidrule(lr){6-8}\n\\multicolumn{2}{c}{S.L.} & num & char & fctr & date & time & datetime & currency \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multirow{7}{*}{grp\\_a} & row\\_1 & 1.111e-01 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.950 \\\\ \n & row\\_2 & 2.222e+00 & banana & two & 2015-02-15 & 14:40 & 2018-02-02 14:33 & 17.950 \\\\ \n & row\\_3 & 3.333e+01 & coconut & three & 2015-03-15 & 15:45 & 2018-03-03 03:44 & 1.390 \\\\ \n & row\\_4 & 4.444e+02 & durian & four & 2015-04-15 & 16:50 & 2018-04-04 15:55 & 65100.000 \\\\ \n\\cmidrule(l{-0.05em}r){2-9}\n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{min} & 0.11 & — & — & — & — & — & 1.39 \\\\ \n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{max} & 444.40 & — & — & — & — & — & 65100.00 \\\\ \n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{avg} & 120.02 & — & — & — & — & — & 16292.32 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multirow{7}{*}{grp\\_b} & row\\_5 & 5.550e+03 & NA & five & 2015-05-15 & 17:55 & 2018-05-05 04:00 & 1325.810 \\\\ \n & row\\_6 & NA & fig & six & 2015-06-15 & NA & 2018-06-06 16:11 & 13.255 \\\\ \n & row\\_7 & 7.770e+05 & grapefruit & seven & NA & 19:10 & 2018-07-07 05:22 & NA \\\\ \n & row\\_8 & 8.880e+06 & honeydew & eight & 2015-08-15 & 20:20 & NA & 0.440 \\\\ \n\\cmidrule(l{-0.05em}r){2-9}\n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{min} & 5550.00 & — & — & — & — & — & 0.44 \\\\ \n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{max} & 8880000.00 & — & — & — & — & — & 1325.81 \\\\ \n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{avg} & 3220850.00 & — & — & — & — & — & 446.50 \\\\ \n\\midrule \n\\midrule \n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{min} & 0.11 & — & — & — & — & — & 0.44 \\\\ \n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{max} & 8880000.00 & — & — & — & — & — & 65100.00 \\\\ \n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{avg} & 1380432.87 & — & — & — & — & — & 9501.26 \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\nSource note \\#1\\\\\nSource note \\#2\\\\\n\\end{minipage}\n\\endgroup\n" + [1] "\\begingroup\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{l|l|rlcrrrr}\n\\caption*{\n{\\large Data listing from \\textbf{exibble}} \\\\ \n{\\small \\texttt{exibble} is an R dataset}\n} \\\\ \n\\toprule\n\\multicolumn{2}{l}{} & & & & \\multicolumn{3}{c}{timing} & \\\\ \n\\cmidrule(lr){6-8}\n\\multicolumn{2}{c}{S.L.} & num & char & fctr & date & time & datetime & currency \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multirow{7}{*}{grp\\_a} & row\\_1 & 1.111e-01 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.950 \\\\ \n & row\\_2 & 2.222e+00 & banana & two & 2015-02-15 & 14:40 & 2018-02-02 14:33 & 17.950 \\\\ \n & row\\_3 & 3.333e+01 & coconut & three & 2015-03-15 & 15:45 & 2018-03-03 03:44 & 1.390 \\\\ \n & row\\_4 & 4.444e+02 & durian & four & 2015-04-15 & 16:50 & 2018-04-04 15:55 & 65100.000 \\\\ \n\\cmidrule(l{-0.05em}r){2-9}\n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{min} & 0.11 & — & — & — & — & — & 1.39 \\\\ \n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{max} & 444.40 & — & — & — & — & — & 65100.00 \\\\ \n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{avg} & 120.02 & — & — & — & — & — & 16292.32 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multirow{7}{*}{grp\\_b} & row\\_5 & 5.550e+03 & NA & five & 2015-05-15 & 17:55 & 2018-05-05 04:00 & 1325.810 \\\\ \n & row\\_6 & NA & fig & six & 2015-06-15 & NA & 2018-06-06 16:11 & 13.255 \\\\ \n & row\\_7 & 7.770e+05 & grapefruit & seven & NA & 19:10 & 2018-07-07 05:22 & NA \\\\ \n & row\\_8 & 8.880e+06 & honeydew & eight & 2015-08-15 & 20:20 & NA & 0.440 \\\\ \n\\cmidrule(l{-0.05em}r){2-9}\n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{min} & 5550.00 & — & — & — & — & — & 0.44 \\\\ \n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{max} & 8880000.00 & — & — & — & — & — & 1325.81 \\\\ \n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{avg} & 3220850.00 & — & — & — & — & — & 446.50 \\\\ \n\\midrule \n\\midrule \n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{min} & 0.11 & — & — & — & — & — & 0.44 \\\\ \n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{max} & 8880000.00 & — & — & — & — & — & 65100.00 \\\\ \n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{avg} & 1380432.87 & — & — & — & — & — & 9501.26 \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\nSource note \\#1\\\\\nSource note \\#2\\\\\n\\end{minipage}\n\\endgroup\n" --- @@ -11526,12 +11526,12 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{>{\\raggedright\\arraybackslash}p{\\dimexpr 0.10\\linewidth -2\\tabcolsep-1.5\\arrayrulewidth}|>{\\raggedright\\arraybackslash}p{\\dimexpr 0.10\\linewidth -2\\tabcolsep-1.5\\arrayrulewidth}|>{\\raggedleft\\arraybackslash}p{\\dimexpr 0.10\\linewidth -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedright\\arraybackslash}p{\\dimexpr 0.10\\linewidth -2\\tabcolsep-1.5\\arrayrulewidth}>{\\centering\\arraybackslash}p{\\dimexpr 0.10\\linewidth -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 0.10\\linewidth -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 0.10\\linewidth -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 0.10\\linewidth -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 0.10\\linewidth -2\\tabcolsep-1.5\\arrayrulewidth}}\n\\caption*{\n{\\large Data listing from \\textbf{exibble}} \\\\ \n{\\small \\texttt{exibble} is an R dataset}\n} \\\\ \n\\toprule\n\\multicolumn{2}{>{\\raggedright\\arraybackslash}m{\\dimexpr 0.20\\linewidth -2\\tabcolsep-1.5\\arrayrulewidth}}{} & & & & \\multicolumn{3}{>{\\centering\\arraybackslash}m{\\dimexpr 0.30\\linewidth -2\\tabcolsep-1.5\\arrayrulewidth}}{timing} & \\\\ \n\\cmidrule(lr){6-8}\n\\multicolumn{2}{>{\\centering\\arraybackslash}m{\\dimexpr 0.20\\linewidth -2\\tabcolsep-1.5\\arrayrulewidth}}{S.L.} & num & char & fctr & date & time & datetime & currency \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multirow{7}{=}{grp\\_a} & row\\_1 & 1.111e-01 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.950 \\\\ \n & row\\_2 & 2.222e+00 & banana & two & 2015-02-15 & 14:40 & 2018-02-02 14:33 & 17.950 \\\\ \n & row\\_3 & 3.333e+01 & coconut & three & 2015-03-15 & 15:45 & 2018-03-03 03:44 & 1.390 \\\\ \n & row\\_4 & 4.444e+02 & durian & four & 2015-04-15 & 16:50 & 2018-04-04 15:55 & 65100.000 \\\\ \n\\cmidrule(l{-0.05em}r){2-9}\n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{min} & 0.11 & — & — & — & — & — & 1.39 \\\\ \n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{max} & 444.40 & — & — & — & — & — & 65100.00 \\\\ \n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{avg} & 120.02 & — & — & — & — & — & 16292.32 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multirow{7}{=}{grp\\_b} & row\\_5 & 5.550e+03 & NA & five & 2015-05-15 & 17:55 & 2018-05-05 04:00 & 1325.810 \\\\ \n & row\\_6 & NA & fig & six & 2015-06-15 & NA & 2018-06-06 16:11 & 13.255 \\\\ \n & row\\_7 & 7.770e+05 & grapefruit & seven & NA & 19:10 & 2018-07-07 05:22 & NA \\\\ \n & row\\_8 & 8.880e+06 & honeydew & eight & 2015-08-15 & 20:20 & NA & 0.440 \\\\ \n\\cmidrule(l{-0.05em}r){2-9}\n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{min} & 5550.00 & — & — & — & — & — & 0.44 \\\\ \n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{max} & 8880000.00 & — & — & — & — & — & 1325.81 \\\\ \n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{avg} & 3220850.00 & — & — & — & — & — & 446.50 \\\\ \n\\midrule \n\\midrule \n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{min} & 0.11 & — & — & — & — & — & 0.44 \\\\ \n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{max} & 8880000.00 & — & — & — & — & — & 65100.00 \\\\ \n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{avg} & 1380432.87 & — & — & — & — & — & 9501.26 \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\nSource note \\#1\\\\\nSource note \\#2\\\\\n\\end{minipage}\n\\endgroup\n" + [1] "\\begingroup\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{>{\\raggedright\\arraybackslash}p{\\dimexpr 0.10\\linewidth -2\\tabcolsep-1.5\\arrayrulewidth}|>{\\raggedright\\arraybackslash}p{\\dimexpr 0.10\\linewidth -2\\tabcolsep-1.5\\arrayrulewidth}|>{\\raggedleft\\arraybackslash}p{\\dimexpr 0.10\\linewidth -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedright\\arraybackslash}p{\\dimexpr 0.10\\linewidth -2\\tabcolsep-1.5\\arrayrulewidth}>{\\centering\\arraybackslash}p{\\dimexpr 0.10\\linewidth -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 0.10\\linewidth -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 0.10\\linewidth -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 0.10\\linewidth -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 0.10\\linewidth -2\\tabcolsep-1.5\\arrayrulewidth}}\n\\caption*{\n{\\large Data listing from \\textbf{exibble}} \\\\ \n{\\small \\texttt{exibble} is an R dataset}\n} \\\\ \n\\toprule\n\\multicolumn{2}{>{\\raggedright\\arraybackslash}m{\\dimexpr 0.20\\linewidth -2\\tabcolsep-1.5\\arrayrulewidth}}{} & & & & \\multicolumn{3}{>{\\centering\\arraybackslash}m{\\dimexpr 0.30\\linewidth -2\\tabcolsep-1.5\\arrayrulewidth}}{timing} & \\\\ \n\\cmidrule(lr){6-8}\n\\multicolumn{2}{>{\\centering\\arraybackslash}m{\\dimexpr 0.20\\linewidth -2\\tabcolsep-1.5\\arrayrulewidth}}{S.L.} & num & char & fctr & date & time & datetime & currency \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multirow{7}{=}{grp\\_a} & row\\_1 & 1.111e-01 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.950 \\\\ \n & row\\_2 & 2.222e+00 & banana & two & 2015-02-15 & 14:40 & 2018-02-02 14:33 & 17.950 \\\\ \n & row\\_3 & 3.333e+01 & coconut & three & 2015-03-15 & 15:45 & 2018-03-03 03:44 & 1.390 \\\\ \n & row\\_4 & 4.444e+02 & durian & four & 2015-04-15 & 16:50 & 2018-04-04 15:55 & 65100.000 \\\\ \n\\cmidrule(l{-0.05em}r){2-9}\n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{min} & 0.11 & — & — & — & — & — & 1.39 \\\\ \n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{max} & 444.40 & — & — & — & — & — & 65100.00 \\\\ \n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{avg} & 120.02 & — & — & — & — & — & 16292.32 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multirow{7}{=}{grp\\_b} & row\\_5 & 5.550e+03 & NA & five & 2015-05-15 & 17:55 & 2018-05-05 04:00 & 1325.810 \\\\ \n & row\\_6 & NA & fig & six & 2015-06-15 & NA & 2018-06-06 16:11 & 13.255 \\\\ \n & row\\_7 & 7.770e+05 & grapefruit & seven & NA & 19:10 & 2018-07-07 05:22 & NA \\\\ \n & row\\_8 & 8.880e+06 & honeydew & eight & 2015-08-15 & 20:20 & NA & 0.440 \\\\ \n\\cmidrule(l{-0.05em}r){2-9}\n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{min} & 5550.00 & — & — & — & — & — & 0.44 \\\\ \n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{max} & 8880000.00 & — & — & — & — & — & 1325.81 \\\\ \n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{avg} & 3220850.00 & — & — & — & — & — & 446.50 \\\\ \n\\midrule \n\\midrule \n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{min} & 0.11 & — & — & — & — & — & 0.44 \\\\ \n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{max} & 8880000.00 & — & — & — & — & — & 65100.00 \\\\ \n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{avg} & 1380432.87 & — & — & — & — & — & 9501.26 \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\nSource note \\#1\\\\\nSource note \\#2\\\\\n\\end{minipage}\n\\endgroup\n" --- Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{>{\\raggedright\\arraybackslash}p{\\dimexpr 0.10\\linewidth -2\\tabcolsep-1.5\\arrayrulewidth}|>{\\raggedleft\\arraybackslash}p{\\dimexpr 0.10\\linewidth -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedright\\arraybackslash}p{\\dimexpr 0.10\\linewidth -2\\tabcolsep-1.5\\arrayrulewidth}>{\\centering\\arraybackslash}p{\\dimexpr 0.10\\linewidth -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 0.10\\linewidth -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 0.10\\linewidth -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 0.10\\linewidth -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 0.10\\linewidth -2\\tabcolsep-1.5\\arrayrulewidth}}\n\\caption*{\n{\\large Data listing from \\textbf{exibble}} \\\\ \n{\\small \\texttt{exibble} is an R dataset}\n} \\\\ \n\\toprule\n & & & & \\multicolumn{3}{>{\\centering\\arraybackslash}m{\\dimexpr 0.30\\linewidth -2\\tabcolsep-1.5\\arrayrulewidth}}{timing} & \\\\ \n\\cmidrule(lr){5-7}\nS.L. & num & char & fctr & date & time & datetime & currency \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{8}{>{\\raggedright\\arraybackslash}m{0.9\\linewidth}}{grp\\_a} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\nrow\\_1 & 1.111e-01 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.950 \\\\ \nrow\\_2 & 2.222e+00 & banana & two & 2015-02-15 & 14:40 & 2018-02-02 14:33 & 17.950 \\\\ \nrow\\_3 & 3.333e+01 & coconut & three & 2015-03-15 & 15:45 & 2018-03-03 03:44 & 1.390 \\\\ \nrow\\_4 & 4.444e+02 & durian & four & 2015-04-15 & 16:50 & 2018-04-04 15:55 & 65100.000 \\\\ \n\\midrule \nmin & 0.11 & — & — & — & — & — & 1.39 \\\\ \nmax & 444.40 & — & — & — & — & — & 65100.00 \\\\ \navg & 120.02 & — & — & — & — & — & 16292.32 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{8}{>{\\raggedright\\arraybackslash}m{0.9\\linewidth}}{grp\\_b} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\nrow\\_5 & 5.550e+03 & NA & five & 2015-05-15 & 17:55 & 2018-05-05 04:00 & 1325.810 \\\\ \nrow\\_6 & NA & fig & six & 2015-06-15 & NA & 2018-06-06 16:11 & 13.255 \\\\ \nrow\\_7 & 7.770e+05 & grapefruit & seven & NA & 19:10 & 2018-07-07 05:22 & NA \\\\ \nrow\\_8 & 8.880e+06 & honeydew & eight & 2015-08-15 & 20:20 & NA & 0.440 \\\\ \n\\midrule \nmin & 5550.00 & — & — & — & — & — & 0.44 \\\\ \nmax & 8880000.00 & — & — & — & — & — & 1325.81 \\\\ \navg & 3220850.00 & — & — & — & — & — & 446.50 \\\\ \n\\midrule \n\\midrule \nmin & 0.11 & — & — & — & — & — & 0.44 \\\\ \nmax & 8880000.00 & — & — & — & — & — & 65100.00 \\\\ \navg & 1380432.87 & — & — & — & — & — & 9501.26 \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\nSource note \\#1\\\\\nSource note \\#2\\\\\n\\end{minipage}\n\\endgroup\n" + [1] "\\begingroup\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{>{\\raggedright\\arraybackslash}p{\\dimexpr 0.10\\linewidth -2\\tabcolsep-1.5\\arrayrulewidth}|>{\\raggedleft\\arraybackslash}p{\\dimexpr 0.10\\linewidth -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedright\\arraybackslash}p{\\dimexpr 0.10\\linewidth -2\\tabcolsep-1.5\\arrayrulewidth}>{\\centering\\arraybackslash}p{\\dimexpr 0.10\\linewidth -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 0.10\\linewidth -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 0.10\\linewidth -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 0.10\\linewidth -2\\tabcolsep-1.5\\arrayrulewidth}>{\\raggedleft\\arraybackslash}p{\\dimexpr 0.10\\linewidth -2\\tabcolsep-1.5\\arrayrulewidth}}\n\\caption*{\n{\\large Data listing from \\textbf{exibble}} \\\\ \n{\\small \\texttt{exibble} is an R dataset}\n} \\\\ \n\\toprule\n & & & & \\multicolumn{3}{>{\\centering\\arraybackslash}m{\\dimexpr 0.30\\linewidth -2\\tabcolsep-1.5\\arrayrulewidth}}{timing} & \\\\ \n\\cmidrule(lr){5-7}\nS.L. & num & char & fctr & date & time & datetime & currency \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{8}{>{\\raggedright\\arraybackslash}m{0.9\\linewidth}}{grp\\_a} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\nrow\\_1 & 1.111e-01 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.950 \\\\ \nrow\\_2 & 2.222e+00 & banana & two & 2015-02-15 & 14:40 & 2018-02-02 14:33 & 17.950 \\\\ \nrow\\_3 & 3.333e+01 & coconut & three & 2015-03-15 & 15:45 & 2018-03-03 03:44 & 1.390 \\\\ \nrow\\_4 & 4.444e+02 & durian & four & 2015-04-15 & 16:50 & 2018-04-04 15:55 & 65100.000 \\\\ \n\\midrule \nmin & 0.11 & — & — & — & — & — & 1.39 \\\\ \nmax & 444.40 & — & — & — & — & — & 65100.00 \\\\ \navg & 120.02 & — & — & — & — & — & 16292.32 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{8}{>{\\raggedright\\arraybackslash}m{0.9\\linewidth}}{grp\\_b} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\nrow\\_5 & 5.550e+03 & NA & five & 2015-05-15 & 17:55 & 2018-05-05 04:00 & 1325.810 \\\\ \nrow\\_6 & NA & fig & six & 2015-06-15 & NA & 2018-06-06 16:11 & 13.255 \\\\ \nrow\\_7 & 7.770e+05 & grapefruit & seven & NA & 19:10 & 2018-07-07 05:22 & NA \\\\ \nrow\\_8 & 8.880e+06 & honeydew & eight & 2015-08-15 & 20:20 & NA & 0.440 \\\\ \n\\midrule \nmin & 5550.00 & — & — & — & — & — & 0.44 \\\\ \nmax & 8880000.00 & — & — & — & — & — & 1325.81 \\\\ \navg & 3220850.00 & — & — & — & — & — & 446.50 \\\\ \n\\midrule \n\\midrule \nmin & 0.11 & — & — & — & — & — & 0.44 \\\\ \nmax & 8880000.00 & — & — & — & — & — & 65100.00 \\\\ \navg & 1380432.87 & — & — & — & — & — & 9501.26 \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\nSource note \\#1\\\\\nSource note \\#2\\\\\n\\end{minipage}\n\\endgroup\n" diff --git a/tests/testthat/_snaps/l_summary_rows.md b/tests/testthat/_snaps/l_summary_rows.md index 8e788141c4..826ad7c8af 100644 --- a/tests/testthat/_snaps/l_summary_rows.md +++ b/tests/testthat/_snaps/l_summary_rows.md @@ -3,82 +3,82 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{l|rrrrll}\n\\toprule\n & col\\_1 & col\\_2 & col\\_3 & col\\_4 & row & group \\\\ \n\\midrule\\addlinespace[2.5pt]\n & 767.6 & 928.1 & 382.0 & 674.5 & one & first\\_five \\\\ \n & 403.3 & 461.5 & 15.1 & 242.8 & two & first\\_five \\\\ \n & 686.4 & 54.1 & 282.7 & 56.3 & three & first\\_five \\\\ \n & 662.6 & 148.8 & 984.6 & 928.1 & four & first\\_five \\\\ \n & 198.5 & 65.1 & 127.4 & 219.3 & five & first\\_five \\\\ \n & 132.1 & 118.1 & 91.2 & 874.3 & six & 2nd\\_five \\\\ \n & 349.7 & 307.1 & 566.7 & 542.9 & seven & 2nd\\_five \\\\ \n & 63.7 & 504.3 & 152.0 & 724.5 & eight & 2nd\\_five \\\\ \n & 105.4 & 729.8 & 962.4 & 336.4 & nine & 2nd\\_five \\\\ \n & 924.2 & 424.6 & 740.8 & 104.2 & ten & 2nd\\_five \\\\ \n\\midrule \n\\midrule \naverage & 429.35 & — & — & — & — & — \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{l|rrrrll}\n\\toprule\n & col\\_1 & col\\_2 & col\\_3 & col\\_4 & row & group \\\\ \n\\midrule\\addlinespace[2.5pt]\n & 767.6 & 928.1 & 382.0 & 674.5 & one & first\\_five \\\\ \n & 403.3 & 461.5 & 15.1 & 242.8 & two & first\\_five \\\\ \n & 686.4 & 54.1 & 282.7 & 56.3 & three & first\\_five \\\\ \n & 662.6 & 148.8 & 984.6 & 928.1 & four & first\\_five \\\\ \n & 198.5 & 65.1 & 127.4 & 219.3 & five & first\\_five \\\\ \n & 132.1 & 118.1 & 91.2 & 874.3 & six & 2nd\\_five \\\\ \n & 349.7 & 307.1 & 566.7 & 542.9 & seven & 2nd\\_five \\\\ \n & 63.7 & 504.3 & 152.0 & 724.5 & eight & 2nd\\_five \\\\ \n & 105.4 & 729.8 & 962.4 & 336.4 & nine & 2nd\\_five \\\\ \n & 924.2 & 424.6 & 740.8 & 104.2 & ten & 2nd\\_five \\\\ \n\\midrule \n\\midrule \naverage & 429.35 & — & — & — & — & — \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" --- Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{l|rrrrl}\n\\toprule\n & col\\_1 & col\\_2 & col\\_3 & col\\_4 & group \\\\ \n\\midrule\\addlinespace[2.5pt]\none & 767.6 & 928.1 & 382.0 & 674.5 & first\\_five \\\\ \ntwo & 403.3 & 461.5 & 15.1 & 242.8 & first\\_five \\\\ \nthree & 686.4 & 54.1 & 282.7 & 56.3 & first\\_five \\\\ \nfour & 662.6 & 148.8 & 984.6 & 928.1 & first\\_five \\\\ \nfive & 198.5 & 65.1 & 127.4 & 219.3 & first\\_five \\\\ \nsix & 132.1 & 118.1 & 91.2 & 874.3 & 2nd\\_five \\\\ \nseven & 349.7 & 307.1 & 566.7 & 542.9 & 2nd\\_five \\\\ \neight & 63.7 & 504.3 & 152.0 & 724.5 & 2nd\\_five \\\\ \nnine & 105.4 & 729.8 & 962.4 & 336.4 & 2nd\\_five \\\\ \nten & 924.2 & 424.6 & 740.8 & 104.2 & 2nd\\_five \\\\ \n\\midrule \n\\midrule \naverage & 429.35 & — & — & — & — \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{l|rrrrl}\n\\toprule\n & col\\_1 & col\\_2 & col\\_3 & col\\_4 & group \\\\ \n\\midrule\\addlinespace[2.5pt]\none & 767.6 & 928.1 & 382.0 & 674.5 & first\\_five \\\\ \ntwo & 403.3 & 461.5 & 15.1 & 242.8 & first\\_five \\\\ \nthree & 686.4 & 54.1 & 282.7 & 56.3 & first\\_five \\\\ \nfour & 662.6 & 148.8 & 984.6 & 928.1 & first\\_five \\\\ \nfive & 198.5 & 65.1 & 127.4 & 219.3 & first\\_five \\\\ \nsix & 132.1 & 118.1 & 91.2 & 874.3 & 2nd\\_five \\\\ \nseven & 349.7 & 307.1 & 566.7 & 542.9 & 2nd\\_five \\\\ \neight & 63.7 & 504.3 & 152.0 & 724.5 & 2nd\\_five \\\\ \nnine & 105.4 & 729.8 & 962.4 & 336.4 & 2nd\\_five \\\\ \nten & 924.2 & 424.6 & 740.8 & 104.2 & 2nd\\_five \\\\ \n\\midrule \n\\midrule \naverage & 429.35 & — & — & — & — \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" --- Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{l|rrrrl}\n\\toprule\n & col\\_1 & col\\_2 & col\\_3 & col\\_4 & row \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{6}{l}{first\\_five} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n & 767.6 & 928.1 & 382.0 & 674.5 & one \\\\ \n & 403.3 & 461.5 & 15.1 & 242.8 & two \\\\ \n & 686.4 & 54.1 & 282.7 & 56.3 & three \\\\ \n & 662.6 & 148.8 & 984.6 & 928.1 & four \\\\ \n & 198.5 & 65.1 & 127.4 & 219.3 & five \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{6}{l}{2nd\\_five} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n & 132.1 & 118.1 & 91.2 & 874.3 & six \\\\ \n & 349.7 & 307.1 & 566.7 & 542.9 & seven \\\\ \n & 63.7 & 504.3 & 152.0 & 724.5 & eight \\\\ \n & 105.4 & 729.8 & 962.4 & 336.4 & nine \\\\ \n & 924.2 & 424.6 & 740.8 & 104.2 & ten \\\\ \n\\midrule \n\\midrule \naverage & 429.35 & — & — & — & — \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{l|rrrrl}\n\\toprule\n & col\\_1 & col\\_2 & col\\_3 & col\\_4 & row \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{6}{l}{first\\_five} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n & 767.6 & 928.1 & 382.0 & 674.5 & one \\\\ \n & 403.3 & 461.5 & 15.1 & 242.8 & two \\\\ \n & 686.4 & 54.1 & 282.7 & 56.3 & three \\\\ \n & 662.6 & 148.8 & 984.6 & 928.1 & four \\\\ \n & 198.5 & 65.1 & 127.4 & 219.3 & five \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{6}{l}{2nd\\_five} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n & 132.1 & 118.1 & 91.2 & 874.3 & six \\\\ \n & 349.7 & 307.1 & 566.7 & 542.9 & seven \\\\ \n & 63.7 & 504.3 & 152.0 & 724.5 & eight \\\\ \n & 105.4 & 729.8 & 962.4 & 336.4 & nine \\\\ \n & 924.2 & 424.6 & 740.8 & 104.2 & ten \\\\ \n\\midrule \n\\midrule \naverage & 429.35 & — & — & — & — \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" --- Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{l|rrrr}\n\\toprule\n & col\\_1 & col\\_2 & col\\_3 & col\\_4 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{first\\_five} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\none & 767.6 & 928.1 & 382.0 & 674.5 \\\\ \ntwo & 403.3 & 461.5 & 15.1 & 242.8 \\\\ \nthree & 686.4 & 54.1 & 282.7 & 56.3 \\\\ \nfour & 662.6 & 148.8 & 984.6 & 928.1 \\\\ \nfive & 198.5 & 65.1 & 127.4 & 219.3 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{2nd\\_five} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\nsix & 132.1 & 118.1 & 91.2 & 874.3 \\\\ \nseven & 349.7 & 307.1 & 566.7 & 542.9 \\\\ \neight & 63.7 & 504.3 & 152.0 & 724.5 \\\\ \nnine & 105.4 & 729.8 & 962.4 & 336.4 \\\\ \nten & 924.2 & 424.6 & 740.8 & 104.2 \\\\ \n\\midrule \n\\midrule \naverage & 429.35 & — & — & — \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{l|rrrr}\n\\toprule\n & col\\_1 & col\\_2 & col\\_3 & col\\_4 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{first\\_five} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\none & 767.6 & 928.1 & 382.0 & 674.5 \\\\ \ntwo & 403.3 & 461.5 & 15.1 & 242.8 \\\\ \nthree & 686.4 & 54.1 & 282.7 & 56.3 \\\\ \nfour & 662.6 & 148.8 & 984.6 & 928.1 \\\\ \nfive & 198.5 & 65.1 & 127.4 & 219.3 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{2nd\\_five} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\nsix & 132.1 & 118.1 & 91.2 & 874.3 \\\\ \nseven & 349.7 & 307.1 & 566.7 & 542.9 \\\\ \neight & 63.7 & 504.3 & 152.0 & 724.5 \\\\ \nnine & 105.4 & 729.8 & 962.4 & 336.4 \\\\ \nten & 924.2 & 424.6 & 740.8 & 104.2 \\\\ \n\\midrule \n\\midrule \naverage & 429.35 & — & — & — \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" --- Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{l|rrrrl}\n\\toprule\n & col\\_1 & col\\_2 & col\\_3 & col\\_4 & row \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{6}{l}{first\\_five} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n & 767.6 & 928.1 & 382.0 & 674.5 & one \\\\ \n & 403.3 & 461.5 & 15.1 & 242.8 & two \\\\ \n & 686.4 & 54.1 & 282.7 & 56.3 & three \\\\ \n & 662.6 & 148.8 & 984.6 & 928.1 & four \\\\ \n & 198.5 & 65.1 & 127.4 & 219.3 & five \\\\ \n\\midrule \naverage & 543.68 & — & — & — & — \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{6}{l}{2nd\\_five} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n & 132.1 & 118.1 & 91.2 & 874.3 & six \\\\ \n & 349.7 & 307.1 & 566.7 & 542.9 & seven \\\\ \n & 63.7 & 504.3 & 152.0 & 724.5 & eight \\\\ \n & 105.4 & 729.8 & 962.4 & 336.4 & nine \\\\ \n & 924.2 & 424.6 & 740.8 & 104.2 & ten \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{l|rrrrl}\n\\toprule\n & col\\_1 & col\\_2 & col\\_3 & col\\_4 & row \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{6}{l}{first\\_five} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n & 767.6 & 928.1 & 382.0 & 674.5 & one \\\\ \n & 403.3 & 461.5 & 15.1 & 242.8 & two \\\\ \n & 686.4 & 54.1 & 282.7 & 56.3 & three \\\\ \n & 662.6 & 148.8 & 984.6 & 928.1 & four \\\\ \n & 198.5 & 65.1 & 127.4 & 219.3 & five \\\\ \n\\midrule \naverage & 543.68 & — & — & — & — \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{6}{l}{2nd\\_five} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n & 132.1 & 118.1 & 91.2 & 874.3 & six \\\\ \n & 349.7 & 307.1 & 566.7 & 542.9 & seven \\\\ \n & 63.7 & 504.3 & 152.0 & 724.5 & eight \\\\ \n & 105.4 & 729.8 & 962.4 & 336.4 & nine \\\\ \n & 924.2 & 424.6 & 740.8 & 104.2 & ten \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" --- Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{l|rrrr}\n\\toprule\n & col\\_1 & col\\_2 & col\\_3 & col\\_4 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{first\\_five} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\none & 767.6 & 928.1 & 382.0 & 674.5 \\\\ \ntwo & 403.3 & 461.5 & 15.1 & 242.8 \\\\ \nthree & 686.4 & 54.1 & 282.7 & 56.3 \\\\ \nfour & 662.6 & 148.8 & 984.6 & 928.1 \\\\ \nfive & 198.5 & 65.1 & 127.4 & 219.3 \\\\ \n\\midrule \naverage & 543.68 & — & — & — \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{2nd\\_five} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\nsix & 132.1 & 118.1 & 91.2 & 874.3 \\\\ \nseven & 349.7 & 307.1 & 566.7 & 542.9 \\\\ \neight & 63.7 & 504.3 & 152.0 & 724.5 \\\\ \nnine & 105.4 & 729.8 & 962.4 & 336.4 \\\\ \nten & 924.2 & 424.6 & 740.8 & 104.2 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{l|rrrr}\n\\toprule\n & col\\_1 & col\\_2 & col\\_3 & col\\_4 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{first\\_five} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\none & 767.6 & 928.1 & 382.0 & 674.5 \\\\ \ntwo & 403.3 & 461.5 & 15.1 & 242.8 \\\\ \nthree & 686.4 & 54.1 & 282.7 & 56.3 \\\\ \nfour & 662.6 & 148.8 & 984.6 & 928.1 \\\\ \nfive & 198.5 & 65.1 & 127.4 & 219.3 \\\\ \n\\midrule \naverage & 543.68 & — & — & — \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{2nd\\_five} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\nsix & 132.1 & 118.1 & 91.2 & 874.3 \\\\ \nseven & 349.7 & 307.1 & 566.7 & 542.9 \\\\ \neight & 63.7 & 504.3 & 152.0 & 724.5 \\\\ \nnine & 105.4 & 729.8 & 962.4 & 336.4 \\\\ \nten & 924.2 & 424.6 & 740.8 & 104.2 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" --- Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{l|rrrrl}\n\\toprule\n & col\\_1 & col\\_2 & col\\_3 & col\\_4 & row \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{6}{l}{first\\_five} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n & 767.6 & 928.1 & 382.0 & 674.5 & one \\\\ \n & 403.3 & 461.5 & 15.1 & 242.8 & two \\\\ \n & 686.4 & 54.1 & 282.7 & 56.3 & three \\\\ \n & 662.6 & 148.8 & 984.6 & 928.1 & four \\\\ \n & 198.5 & 65.1 & 127.4 & 219.3 & five \\\\ \n\\midrule \naverage & 543.68 & — & 358.36 & — & — \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{6}{l}{2nd\\_five} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n & 132.1 & 118.1 & 91.2 & 874.3 & six \\\\ \n & 349.7 & 307.1 & 566.7 & 542.9 & seven \\\\ \n & 63.7 & 504.3 & 152.0 & 724.5 & eight \\\\ \n & 105.4 & 729.8 & 962.4 & 336.4 & nine \\\\ \n & 924.2 & 424.6 & 740.8 & 104.2 & ten \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{l|rrrrl}\n\\toprule\n & col\\_1 & col\\_2 & col\\_3 & col\\_4 & row \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{6}{l}{first\\_five} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n & 767.6 & 928.1 & 382.0 & 674.5 & one \\\\ \n & 403.3 & 461.5 & 15.1 & 242.8 & two \\\\ \n & 686.4 & 54.1 & 282.7 & 56.3 & three \\\\ \n & 662.6 & 148.8 & 984.6 & 928.1 & four \\\\ \n & 198.5 & 65.1 & 127.4 & 219.3 & five \\\\ \n\\midrule \naverage & 543.68 & — & 358.36 & — & — \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{6}{l}{2nd\\_five} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n & 132.1 & 118.1 & 91.2 & 874.3 & six \\\\ \n & 349.7 & 307.1 & 566.7 & 542.9 & seven \\\\ \n & 63.7 & 504.3 & 152.0 & 724.5 & eight \\\\ \n & 105.4 & 729.8 & 962.4 & 336.4 & nine \\\\ \n & 924.2 & 424.6 & 740.8 & 104.2 & ten \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" --- Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{l|rrrrl}\n\\toprule\n & col\\_1 & col\\_2 & col\\_3 & col\\_4 & row \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{6}{l}{first\\_five} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n & 767.6 & 928.1 & 382.0 & 674.5 & one \\\\ \n & 403.3 & 461.5 & 15.1 & 242.8 & two \\\\ \n & 686.4 & 54.1 & 282.7 & 56.3 & three \\\\ \n & 662.6 & 148.8 & 984.6 & 928.1 & four \\\\ \n & 198.5 & 65.1 & 127.4 & 219.3 & five \\\\ \n\\midrule \naverage & 543.68 & — & 358.36 & 424.20 & — \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{6}{l}{2nd\\_five} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n & 132.1 & 118.1 & 91.2 & 874.3 & six \\\\ \n & 349.7 & 307.1 & 566.7 & 542.9 & seven \\\\ \n & 63.7 & 504.3 & 152.0 & 724.5 & eight \\\\ \n & 105.4 & 729.8 & 962.4 & 336.4 & nine \\\\ \n & 924.2 & 424.6 & 740.8 & 104.2 & ten \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{l|rrrrl}\n\\toprule\n & col\\_1 & col\\_2 & col\\_3 & col\\_4 & row \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{6}{l}{first\\_five} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n & 767.6 & 928.1 & 382.0 & 674.5 & one \\\\ \n & 403.3 & 461.5 & 15.1 & 242.8 & two \\\\ \n & 686.4 & 54.1 & 282.7 & 56.3 & three \\\\ \n & 662.6 & 148.8 & 984.6 & 928.1 & four \\\\ \n & 198.5 & 65.1 & 127.4 & 219.3 & five \\\\ \n\\midrule \naverage & 543.68 & — & 358.36 & 424.20 & — \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{6}{l}{2nd\\_five} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n & 132.1 & 118.1 & 91.2 & 874.3 & six \\\\ \n & 349.7 & 307.1 & 566.7 & 542.9 & seven \\\\ \n & 63.7 & 504.3 & 152.0 & 724.5 & eight \\\\ \n & 105.4 & 729.8 & 962.4 & 336.4 & nine \\\\ \n & 924.2 & 424.6 & 740.8 & 104.2 & ten \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" --- Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{l|rrrrl}\n\\toprule\n & col\\_1 & col\\_2 & col\\_3 & col\\_4 & row \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{6}{l}{first\\_five} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n & 767.6 & 928.1 & 382.0 & 674.5 & one \\\\ \n & 403.3 & 461.5 & 15.1 & 242.8 & two \\\\ \n & 686.4 & 54.1 & 282.7 & 56.3 & three \\\\ \n & 662.6 & 148.8 & 984.6 & 928.1 & four \\\\ \n & 198.5 & 65.1 & 127.4 & 219.3 & five \\\\ \n\\midrule \naverage & 543.68 & 331.52 & 358.36 & 424.20 & — \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{6}{l}{2nd\\_five} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n & 132.1 & 118.1 & 91.2 & 874.3 & six \\\\ \n & 349.7 & 307.1 & 566.7 & 542.9 & seven \\\\ \n & 63.7 & 504.3 & 152.0 & 724.5 & eight \\\\ \n & 105.4 & 729.8 & 962.4 & 336.4 & nine \\\\ \n & 924.2 & 424.6 & 740.8 & 104.2 & ten \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{l|rrrrl}\n\\toprule\n & col\\_1 & col\\_2 & col\\_3 & col\\_4 & row \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{6}{l}{first\\_five} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n & 767.6 & 928.1 & 382.0 & 674.5 & one \\\\ \n & 403.3 & 461.5 & 15.1 & 242.8 & two \\\\ \n & 686.4 & 54.1 & 282.7 & 56.3 & three \\\\ \n & 662.6 & 148.8 & 984.6 & 928.1 & four \\\\ \n & 198.5 & 65.1 & 127.4 & 219.3 & five \\\\ \n\\midrule \naverage & 543.68 & 331.52 & 358.36 & 424.20 & — \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{6}{l}{2nd\\_five} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n & 132.1 & 118.1 & 91.2 & 874.3 & six \\\\ \n & 349.7 & 307.1 & 566.7 & 542.9 & seven \\\\ \n & 63.7 & 504.3 & 152.0 & 724.5 & eight \\\\ \n & 105.4 & 729.8 & 962.4 & 336.4 & nine \\\\ \n & 924.2 & 424.6 & 740.8 & 104.2 & ten \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" --- Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{l|rrrr}\n\\toprule\n & col\\_1 & col\\_2 & col\\_3 & col\\_4 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{first\\_five} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\none & 767.6 & 928.1 & 382.0 & 674.5 \\\\ \ntwo & 403.3 & 461.5 & 15.1 & 242.8 \\\\ \nthree & 686.4 & 54.1 & 282.7 & 56.3 \\\\ \nfour & 662.6 & 148.8 & 984.6 & 928.1 \\\\ \nfive & 198.5 & 65.1 & 127.4 & 219.3 \\\\ \n\\midrule \naverage & 543.68 & — & 358.36 & — \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{2nd\\_five} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\nsix & 132.1 & 118.1 & 91.2 & 874.3 \\\\ \nseven & 349.7 & 307.1 & 566.7 & 542.9 \\\\ \neight & 63.7 & 504.3 & 152.0 & 724.5 \\\\ \nnine & 105.4 & 729.8 & 962.4 & 336.4 \\\\ \nten & 924.2 & 424.6 & 740.8 & 104.2 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{l|rrrr}\n\\toprule\n & col\\_1 & col\\_2 & col\\_3 & col\\_4 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{first\\_five} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\none & 767.6 & 928.1 & 382.0 & 674.5 \\\\ \ntwo & 403.3 & 461.5 & 15.1 & 242.8 \\\\ \nthree & 686.4 & 54.1 & 282.7 & 56.3 \\\\ \nfour & 662.6 & 148.8 & 984.6 & 928.1 \\\\ \nfive & 198.5 & 65.1 & 127.4 & 219.3 \\\\ \n\\midrule \naverage & 543.68 & — & 358.36 & — \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{2nd\\_five} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\nsix & 132.1 & 118.1 & 91.2 & 874.3 \\\\ \nseven & 349.7 & 307.1 & 566.7 & 542.9 \\\\ \neight & 63.7 & 504.3 & 152.0 & 724.5 \\\\ \nnine & 105.4 & 729.8 & 962.4 & 336.4 \\\\ \nten & 924.2 & 424.6 & 740.8 & 104.2 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" --- Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{l|rrrrl}\n\\toprule\n & col\\_1 & col\\_2 & col\\_3 & col\\_4 & row \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{6}{l}{first\\_five} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n & 767.6 & 928.1 & 382.0 & 674.5 & one \\\\ \n & 403.3 & 461.5 & 15.1 & 242.8 & two \\\\ \n & 686.4 & 54.1 & 282.7 & 56.3 & three \\\\ \n & 662.6 & 148.8 & 984.6 & 928.1 & four \\\\ \n & 198.5 & 65.1 & 127.4 & 219.3 & five \\\\ \n\\midrule \naverage & 543.68 & — & — & 424.20 & — \\\\ \nmin & — & 54.10 & — & — & — \\\\ \ncount & — & — & 5 & — & — \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{6}{l}{2nd\\_five} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n & 132.1 & 118.1 & 91.2 & 874.3 & six \\\\ \n & 349.7 & 307.1 & 566.7 & 542.9 & seven \\\\ \n & 63.7 & 504.3 & 152.0 & 724.5 & eight \\\\ \n & 105.4 & 729.8 & 962.4 & 336.4 & nine \\\\ \n & 924.2 & 424.6 & 740.8 & 104.2 & ten \\\\ \n\\midrule \nmax & — & — & — & 874.30 & — \\\\ \ncount & — & — & 5 & — & — \\\\ \n\\midrule \n\\midrule \nMEAN & 429.35 & 374.15 & 430.49 & 470.33 & — \\\\ \nMIN & 63.70 & 54.10 & 15.10 & 56.30 & — \\\\ \nMAX & 924.20 & 928.10 & 984.60 & 928.10 & — \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{l|rrrrl}\n\\toprule\n & col\\_1 & col\\_2 & col\\_3 & col\\_4 & row \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{6}{l}{first\\_five} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n & 767.6 & 928.1 & 382.0 & 674.5 & one \\\\ \n & 403.3 & 461.5 & 15.1 & 242.8 & two \\\\ \n & 686.4 & 54.1 & 282.7 & 56.3 & three \\\\ \n & 662.6 & 148.8 & 984.6 & 928.1 & four \\\\ \n & 198.5 & 65.1 & 127.4 & 219.3 & five \\\\ \n\\midrule \naverage & 543.68 & — & — & 424.20 & — \\\\ \nmin & — & 54.10 & — & — & — \\\\ \ncount & — & — & 5 & — & — \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{6}{l}{2nd\\_five} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n & 132.1 & 118.1 & 91.2 & 874.3 & six \\\\ \n & 349.7 & 307.1 & 566.7 & 542.9 & seven \\\\ \n & 63.7 & 504.3 & 152.0 & 724.5 & eight \\\\ \n & 105.4 & 729.8 & 962.4 & 336.4 & nine \\\\ \n & 924.2 & 424.6 & 740.8 & 104.2 & ten \\\\ \n\\midrule \nmax & — & — & — & 874.30 & — \\\\ \ncount & — & — & 5 & — & — \\\\ \n\\midrule \n\\midrule \nMEAN & 429.35 & 374.15 & 430.49 & 470.33 & — \\\\ \nMIN & 63.70 & 54.10 & 15.10 & 56.30 & — \\\\ \nMAX & 924.20 & 928.10 & 984.60 & 928.10 & — \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" --- Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{l|rrrr}\n\\toprule\n & col\\_1 & col\\_2 & col\\_3 & col\\_4 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{first\\_five} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\none & 767.6 & 928.1 & 382.0 & 674.5 \\\\ \ntwo & 403.3 & 461.5 & 15.1 & 242.8 \\\\ \nthree & 686.4 & 54.1 & 282.7 & 56.3 \\\\ \nfour & 662.6 & 148.8 & 984.6 & 928.1 \\\\ \nfive & 198.5 & 65.1 & 127.4 & 219.3 \\\\ \n\\midrule \naverage & 543.68 & — & — & 424.20 \\\\ \nmin & — & 54.10 & — & — \\\\ \ncount & — & — & 5 & — \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{2nd\\_five} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\nsix & 132.1 & 118.1 & 91.2 & 874.3 \\\\ \nseven & 349.7 & 307.1 & 566.7 & 542.9 \\\\ \neight & 63.7 & 504.3 & 152.0 & 724.5 \\\\ \nnine & 105.4 & 729.8 & 962.4 & 336.4 \\\\ \nten & 924.2 & 424.6 & 740.8 & 104.2 \\\\ \n\\midrule \nmax & — & — & — & 874.30 \\\\ \ncount & — & — & 5 & — \\\\ \n\\midrule \n\\midrule \nMEAN & 429.35 & 374.15 & 430.49 & 470.33 \\\\ \nMIN & 63.70 & 54.10 & 15.10 & 56.30 \\\\ \nMAX & 924.20 & 928.10 & 984.60 & 928.10 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{l|rrrr}\n\\toprule\n & col\\_1 & col\\_2 & col\\_3 & col\\_4 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{first\\_five} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\none & 767.6 & 928.1 & 382.0 & 674.5 \\\\ \ntwo & 403.3 & 461.5 & 15.1 & 242.8 \\\\ \nthree & 686.4 & 54.1 & 282.7 & 56.3 \\\\ \nfour & 662.6 & 148.8 & 984.6 & 928.1 \\\\ \nfive & 198.5 & 65.1 & 127.4 & 219.3 \\\\ \n\\midrule \naverage & 543.68 & — & — & 424.20 \\\\ \nmin & — & 54.10 & — & — \\\\ \ncount & — & — & 5 & — \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{2nd\\_five} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\nsix & 132.1 & 118.1 & 91.2 & 874.3 \\\\ \nseven & 349.7 & 307.1 & 566.7 & 542.9 \\\\ \neight & 63.7 & 504.3 & 152.0 & 724.5 \\\\ \nnine & 105.4 & 729.8 & 962.4 & 336.4 \\\\ \nten & 924.2 & 424.6 & 740.8 & 104.2 \\\\ \n\\midrule \nmax & — & — & — & 874.30 \\\\ \ncount & — & — & 5 & — \\\\ \n\\midrule \n\\midrule \nMEAN & 429.35 & 374.15 & 430.49 & 470.33 \\\\ \nMIN & 63.70 & 54.10 & 15.10 & 56.30 \\\\ \nMAX & 924.20 & 928.10 & 984.60 & 928.10 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" diff --git a/tests/testthat/_snaps/l_table_parts.md b/tests/testthat/_snaps/l_table_parts.md index fbf43f449f..39d1cb6805 100644 --- a/tests/testthat/_snaps/l_table_parts.md +++ b/tests/testthat/_snaps/l_table_parts.md @@ -3,103 +3,103 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{rrrrrrrrrrr}\n\\caption{test caption} \\\\ \n\\toprule\nmpg & cyl & disp & hp & drat & wt & qsec & vs & am & gear & carb \\\\ \n\\midrule\\addlinespace[2.5pt]\n21.0 & 6 & 160 & 110 & 3.90 & 2.620 & 16.46 & 0 & 1 & 4 & 4 \\\\ \n21.0 & 6 & 160 & 110 & 3.90 & 2.875 & 17.02 & 0 & 1 & 4 & 4 \\\\ \n22.8 & 4 & 108 & 93 & 3.85 & 2.320 & 18.61 & 1 & 1 & 4 & 1 \\\\ \n21.4 & 6 & 258 & 110 & 3.08 & 3.215 & 19.44 & 1 & 0 & 3 & 1 \\\\ \n18.7 & 8 & 360 & 175 & 3.15 & 3.440 & 17.02 & 0 & 0 & 3 & 2 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{rrrrrrrrrrr}\n\\caption{test caption} \\\\ \n\\toprule\nmpg & cyl & disp & hp & drat & wt & qsec & vs & am & gear & carb \\\\ \n\\midrule\\addlinespace[2.5pt]\n21.0 & 6 & 160 & 110 & 3.90 & 2.620 & 16.46 & 0 & 1 & 4 & 4 \\\\ \n21.0 & 6 & 160 & 110 & 3.90 & 2.875 & 17.02 & 0 & 1 & 4 & 4 \\\\ \n22.8 & 4 & 108 & 93 & 3.85 & 2.320 & 18.61 & 1 & 1 & 4 & 1 \\\\ \n21.4 & 6 & 258 & 110 & 3.08 & 3.215 & 19.44 & 1 & 0 & 3 & 1 \\\\ \n18.7 & 8 & 360 & 175 & 3.15 & 3.440 & 17.02 & 0 & 0 & 3 & 2 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" # A gt table contains the expected heading components Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{rrrrrrrrrrr}\n\\caption*{\n{\\large test title}\n} \\\\ \n\\toprule\nmpg & cyl & disp & hp & drat & wt & qsec & vs & am & gear & carb \\\\ \n\\midrule\\addlinespace[2.5pt]\n21.0 & 6 & 160 & 110 & 3.90 & 2.620 & 16.46 & 0 & 1 & 4 & 4 \\\\ \n21.0 & 6 & 160 & 110 & 3.90 & 2.875 & 17.02 & 0 & 1 & 4 & 4 \\\\ \n22.8 & 4 & 108 & 93 & 3.85 & 2.320 & 18.61 & 1 & 1 & 4 & 1 \\\\ \n21.4 & 6 & 258 & 110 & 3.08 & 3.215 & 19.44 & 1 & 0 & 3 & 1 \\\\ \n18.7 & 8 & 360 & 175 & 3.15 & 3.440 & 17.02 & 0 & 0 & 3 & 2 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{rrrrrrrrrrr}\n\\caption*{\n{\\large test title}\n} \\\\ \n\\toprule\nmpg & cyl & disp & hp & drat & wt & qsec & vs & am & gear & carb \\\\ \n\\midrule\\addlinespace[2.5pt]\n21.0 & 6 & 160 & 110 & 3.90 & 2.620 & 16.46 & 0 & 1 & 4 & 4 \\\\ \n21.0 & 6 & 160 & 110 & 3.90 & 2.875 & 17.02 & 0 & 1 & 4 & 4 \\\\ \n22.8 & 4 & 108 & 93 & 3.85 & 2.320 & 18.61 & 1 & 1 & 4 & 1 \\\\ \n21.4 & 6 & 258 & 110 & 3.08 & 3.215 & 19.44 & 1 & 0 & 3 & 1 \\\\ \n18.7 & 8 & 360 & 175 & 3.15 & 3.440 & 17.02 & 0 & 0 & 3 & 2 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" --- Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{rrrrrrrrrrr}\n\\caption*{\n{\\large test title} \\\\ \n{\\small test subtitle}\n} \\\\ \n\\toprule\nmpg & cyl & disp & hp & drat & wt & qsec & vs & am & gear & carb \\\\ \n\\midrule\\addlinespace[2.5pt]\n21.0 & 6 & 160 & 110 & 3.90 & 2.620 & 16.46 & 0 & 1 & 4 & 4 \\\\ \n21.0 & 6 & 160 & 110 & 3.90 & 2.875 & 17.02 & 0 & 1 & 4 & 4 \\\\ \n22.8 & 4 & 108 & 93 & 3.85 & 2.320 & 18.61 & 1 & 1 & 4 & 1 \\\\ \n21.4 & 6 & 258 & 110 & 3.08 & 3.215 & 19.44 & 1 & 0 & 3 & 1 \\\\ \n18.7 & 8 & 360 & 175 & 3.15 & 3.440 & 17.02 & 0 & 0 & 3 & 2 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{rrrrrrrrrrr}\n\\caption*{\n{\\large test title} \\\\ \n{\\small test subtitle}\n} \\\\ \n\\toprule\nmpg & cyl & disp & hp & drat & wt & qsec & vs & am & gear & carb \\\\ \n\\midrule\\addlinespace[2.5pt]\n21.0 & 6 & 160 & 110 & 3.90 & 2.620 & 16.46 & 0 & 1 & 4 & 4 \\\\ \n21.0 & 6 & 160 & 110 & 3.90 & 2.875 & 17.02 & 0 & 1 & 4 & 4 \\\\ \n22.8 & 4 & 108 & 93 & 3.85 & 2.320 & 18.61 & 1 & 1 & 4 & 1 \\\\ \n21.4 & 6 & 258 & 110 & 3.08 & 3.215 & 19.44 & 1 & 0 & 3 & 1 \\\\ \n18.7 & 8 & 360 & 175 & 3.15 & 3.440 & 17.02 & 0 & 0 & 3 & 2 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" --- Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{rrrrrrrrrrr}\n\\caption*{\n{\\large test title}\n} \\\\ \n\\toprule\nmpg & cyl & disp & hp & drat & wt & qsec & vs & am & gear & carb \\\\ \n\\midrule\\addlinespace[2.5pt]\n21.0 & 6 & 160 & 110 & 3.90 & 2.620 & 16.46 & 0 & 1 & 4 & 4 \\\\ \n21.0 & 6 & 160 & 110 & 3.90 & 2.875 & 17.02 & 0 & 1 & 4 & 4 \\\\ \n22.8 & 4 & 108 & 93 & 3.85 & 2.320 & 18.61 & 1 & 1 & 4 & 1 \\\\ \n21.4 & 6 & 258 & 110 & 3.08 & 3.215 & 19.44 & 1 & 0 & 3 & 1 \\\\ \n18.7 & 8 & 360 & 175 & 3.15 & 3.440 & 17.02 & 0 & 0 & 3 & 2 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{rrrrrrrrrrr}\n\\caption*{\n{\\large test title}\n} \\\\ \n\\toprule\nmpg & cyl & disp & hp & drat & wt & qsec & vs & am & gear & carb \\\\ \n\\midrule\\addlinespace[2.5pt]\n21.0 & 6 & 160 & 110 & 3.90 & 2.620 & 16.46 & 0 & 1 & 4 & 4 \\\\ \n21.0 & 6 & 160 & 110 & 3.90 & 2.875 & 17.02 & 0 & 1 & 4 & 4 \\\\ \n22.8 & 4 & 108 & 93 & 3.85 & 2.320 & 18.61 & 1 & 1 & 4 & 1 \\\\ \n21.4 & 6 & 258 & 110 & 3.08 & 3.215 & 19.44 & 1 & 0 & 3 & 1 \\\\ \n18.7 & 8 & 360 & 175 & 3.15 & 3.440 & 17.02 & 0 & 0 & 3 & 2 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" --- Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{rrrrrrrrrrr}\n\\caption*{\n{\\large test title}\n} \\\\ \n\\toprule\nmpg & cyl & disp & hp & drat & wt & qsec & vs & am & gear & carb \\\\ \n\\midrule\\addlinespace[2.5pt]\n21.0 & 6 & 160 & 110 & 3.90 & 2.620 & 16.46 & 0 & 1 & 4 & 4 \\\\ \n21.0 & 6 & 160 & 110 & 3.90 & 2.875 & 17.02 & 0 & 1 & 4 & 4 \\\\ \n22.8 & 4 & 108 & 93 & 3.85 & 2.320 & 18.61 & 1 & 1 & 4 & 1 \\\\ \n21.4 & 6 & 258 & 110 & 3.08 & 3.215 & 19.44 & 1 & 0 & 3 & 1 \\\\ \n18.7 & 8 & 360 & 175 & 3.15 & 3.440 & 17.02 & 0 & 0 & 3 & 2 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{rrrrrrrrrrr}\n\\caption*{\n{\\large test title}\n} \\\\ \n\\toprule\nmpg & cyl & disp & hp & drat & wt & qsec & vs & am & gear & carb \\\\ \n\\midrule\\addlinespace[2.5pt]\n21.0 & 6 & 160 & 110 & 3.90 & 2.620 & 16.46 & 0 & 1 & 4 & 4 \\\\ \n21.0 & 6 & 160 & 110 & 3.90 & 2.875 & 17.02 & 0 & 1 & 4 & 4 \\\\ \n22.8 & 4 & 108 & 93 & 3.85 & 2.320 & 18.61 & 1 & 1 & 4 & 1 \\\\ \n21.4 & 6 & 258 & 110 & 3.08 & 3.215 & 19.44 & 1 & 0 & 3 & 1 \\\\ \n18.7 & 8 & 360 & 175 & 3.15 & 3.440 & 17.02 & 0 & 0 & 3 & 2 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" # A gt table contains the expected column spanner labels Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{rrrr}\n\\toprule\n & \\multicolumn{2}{c}{perimeter} & \\\\ \n\\cmidrule(lr){2-3}\narea & peri & shape & perm \\\\ \n\\midrule\\addlinespace[2.5pt]\n4990 & 2791.900 & 0.0903296 & 6.3 \\\\ \n7002 & 3892.600 & 0.1486220 & 6.3 \\\\ \n7558 & 3930.660 & 0.1833120 & 6.3 \\\\ \n7352 & 3869.320 & 0.1170630 & 6.3 \\\\ \n7943 & 3948.540 & 0.1224170 & 17.1 \\\\ \n7979 & 4010.150 & 0.1670450 & 17.1 \\\\ \n9333 & 4345.750 & 0.1896510 & 17.1 \\\\ \n8209 & 4344.750 & 0.1641270 & 17.1 \\\\ \n8393 & 3682.040 & 0.2036540 & 119.0 \\\\ \n6425 & 3098.650 & 0.1623940 & 119.0 \\\\ \n9364 & 4480.050 & 0.1509440 & 119.0 \\\\ \n8624 & 3986.240 & 0.1481410 & 119.0 \\\\ \n10651 & 4036.540 & 0.2285950 & 82.4 \\\\ \n8868 & 3518.040 & 0.2316230 & 82.4 \\\\ \n9417 & 3999.370 & 0.1725670 & 82.4 \\\\ \n8874 & 3629.070 & 0.1534810 & 82.4 \\\\ \n10962 & 4608.660 & 0.2043140 & 58.6 \\\\ \n10743 & 4787.620 & 0.2627270 & 58.6 \\\\ \n11878 & 4864.220 & 0.2000710 & 58.6 \\\\ \n9867 & 4479.410 & 0.1448100 & 58.6 \\\\ \n7838 & 3428.740 & 0.1138520 & 142.0 \\\\ \n11876 & 4353.140 & 0.2910290 & 142.0 \\\\ \n12212 & 4697.650 & 0.2400770 & 142.0 \\\\ \n8233 & 3518.440 & 0.1618650 & 142.0 \\\\ \n6360 & 1977.390 & 0.2808870 & 740.0 \\\\ \n4193 & 1379.350 & 0.1794550 & 740.0 \\\\ \n7416 & 1916.240 & 0.1918020 & 740.0 \\\\ \n5246 & 1585.420 & 0.1330830 & 740.0 \\\\ \n6509 & 1851.210 & 0.2252140 & 890.0 \\\\ \n4895 & 1239.660 & 0.3412730 & 890.0 \\\\ \n6775 & 1728.140 & 0.3116460 & 890.0 \\\\ \n7894 & 1461.060 & 0.2760160 & 890.0 \\\\ \n5980 & 1426.760 & 0.1976530 & 950.0 \\\\ \n5318 & 990.388 & 0.3266350 & 950.0 \\\\ \n7392 & 1350.760 & 0.1541920 & 950.0 \\\\ \n7894 & 1461.060 & 0.2760160 & 950.0 \\\\ \n3469 & 1376.700 & 0.1769690 & 100.0 \\\\ \n1468 & 476.322 & 0.4387120 & 100.0 \\\\ \n3524 & 1189.460 & 0.1635860 & 100.0 \\\\ \n5267 & 1644.960 & 0.2538320 & 100.0 \\\\ \n5048 & 941.543 & 0.3286410 & 1300.0 \\\\ \n1016 & 308.642 & 0.2300810 & 1300.0 \\\\ \n5605 & 1145.690 & 0.4641250 & 1300.0 \\\\ \n8793 & 2280.490 & 0.4204770 & 1300.0 \\\\ \n3475 & 1174.110 & 0.2007440 & 580.0 \\\\ \n1651 & 597.808 & 0.2626510 & 580.0 \\\\ \n5514 & 1455.880 & 0.1824530 & 580.0 \\\\ \n9718 & 1485.580 & 0.2004470 & 580.0 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{rrrr}\n\\toprule\n & \\multicolumn{2}{c}{perimeter} & \\\\ \n\\cmidrule(lr){2-3}\narea & peri & shape & perm \\\\ \n\\midrule\\addlinespace[2.5pt]\n4990 & 2791.900 & 0.0903296 & 6.3 \\\\ \n7002 & 3892.600 & 0.1486220 & 6.3 \\\\ \n7558 & 3930.660 & 0.1833120 & 6.3 \\\\ \n7352 & 3869.320 & 0.1170630 & 6.3 \\\\ \n7943 & 3948.540 & 0.1224170 & 17.1 \\\\ \n7979 & 4010.150 & 0.1670450 & 17.1 \\\\ \n9333 & 4345.750 & 0.1896510 & 17.1 \\\\ \n8209 & 4344.750 & 0.1641270 & 17.1 \\\\ \n8393 & 3682.040 & 0.2036540 & 119.0 \\\\ \n6425 & 3098.650 & 0.1623940 & 119.0 \\\\ \n9364 & 4480.050 & 0.1509440 & 119.0 \\\\ \n8624 & 3986.240 & 0.1481410 & 119.0 \\\\ \n10651 & 4036.540 & 0.2285950 & 82.4 \\\\ \n8868 & 3518.040 & 0.2316230 & 82.4 \\\\ \n9417 & 3999.370 & 0.1725670 & 82.4 \\\\ \n8874 & 3629.070 & 0.1534810 & 82.4 \\\\ \n10962 & 4608.660 & 0.2043140 & 58.6 \\\\ \n10743 & 4787.620 & 0.2627270 & 58.6 \\\\ \n11878 & 4864.220 & 0.2000710 & 58.6 \\\\ \n9867 & 4479.410 & 0.1448100 & 58.6 \\\\ \n7838 & 3428.740 & 0.1138520 & 142.0 \\\\ \n11876 & 4353.140 & 0.2910290 & 142.0 \\\\ \n12212 & 4697.650 & 0.2400770 & 142.0 \\\\ \n8233 & 3518.440 & 0.1618650 & 142.0 \\\\ \n6360 & 1977.390 & 0.2808870 & 740.0 \\\\ \n4193 & 1379.350 & 0.1794550 & 740.0 \\\\ \n7416 & 1916.240 & 0.1918020 & 740.0 \\\\ \n5246 & 1585.420 & 0.1330830 & 740.0 \\\\ \n6509 & 1851.210 & 0.2252140 & 890.0 \\\\ \n4895 & 1239.660 & 0.3412730 & 890.0 \\\\ \n6775 & 1728.140 & 0.3116460 & 890.0 \\\\ \n7894 & 1461.060 & 0.2760160 & 890.0 \\\\ \n5980 & 1426.760 & 0.1976530 & 950.0 \\\\ \n5318 & 990.388 & 0.3266350 & 950.0 \\\\ \n7392 & 1350.760 & 0.1541920 & 950.0 \\\\ \n7894 & 1461.060 & 0.2760160 & 950.0 \\\\ \n3469 & 1376.700 & 0.1769690 & 100.0 \\\\ \n1468 & 476.322 & 0.4387120 & 100.0 \\\\ \n3524 & 1189.460 & 0.1635860 & 100.0 \\\\ \n5267 & 1644.960 & 0.2538320 & 100.0 \\\\ \n5048 & 941.543 & 0.3286410 & 1300.0 \\\\ \n1016 & 308.642 & 0.2300810 & 1300.0 \\\\ \n5605 & 1145.690 & 0.4641250 & 1300.0 \\\\ \n8793 & 2280.490 & 0.4204770 & 1300.0 \\\\ \n3475 & 1174.110 & 0.2007440 & 580.0 \\\\ \n1651 & 597.808 & 0.2626510 & 580.0 \\\\ \n5514 & 1455.880 & 0.1824530 & 580.0 \\\\ \n9718 & 1485.580 & 0.2004470 & 580.0 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" --- Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{rrrr}\n\\toprule\n & \\multicolumn{2}{c}{perimeter} & \\\\ \n\\cmidrule(lr){2-3}\narea & peri & shape & perm \\\\ \n\\midrule\\addlinespace[2.5pt]\n4990 & 2791.900 & 0.0903296 & 6.3 \\\\ \n7002 & 3892.600 & 0.1486220 & 6.3 \\\\ \n7558 & 3930.660 & 0.1833120 & 6.3 \\\\ \n7352 & 3869.320 & 0.1170630 & 6.3 \\\\ \n7943 & 3948.540 & 0.1224170 & 17.1 \\\\ \n7979 & 4010.150 & 0.1670450 & 17.1 \\\\ \n9333 & 4345.750 & 0.1896510 & 17.1 \\\\ \n8209 & 4344.750 & 0.1641270 & 17.1 \\\\ \n8393 & 3682.040 & 0.2036540 & 119.0 \\\\ \n6425 & 3098.650 & 0.1623940 & 119.0 \\\\ \n9364 & 4480.050 & 0.1509440 & 119.0 \\\\ \n8624 & 3986.240 & 0.1481410 & 119.0 \\\\ \n10651 & 4036.540 & 0.2285950 & 82.4 \\\\ \n8868 & 3518.040 & 0.2316230 & 82.4 \\\\ \n9417 & 3999.370 & 0.1725670 & 82.4 \\\\ \n8874 & 3629.070 & 0.1534810 & 82.4 \\\\ \n10962 & 4608.660 & 0.2043140 & 58.6 \\\\ \n10743 & 4787.620 & 0.2627270 & 58.6 \\\\ \n11878 & 4864.220 & 0.2000710 & 58.6 \\\\ \n9867 & 4479.410 & 0.1448100 & 58.6 \\\\ \n7838 & 3428.740 & 0.1138520 & 142.0 \\\\ \n11876 & 4353.140 & 0.2910290 & 142.0 \\\\ \n12212 & 4697.650 & 0.2400770 & 142.0 \\\\ \n8233 & 3518.440 & 0.1618650 & 142.0 \\\\ \n6360 & 1977.390 & 0.2808870 & 740.0 \\\\ \n4193 & 1379.350 & 0.1794550 & 740.0 \\\\ \n7416 & 1916.240 & 0.1918020 & 740.0 \\\\ \n5246 & 1585.420 & 0.1330830 & 740.0 \\\\ \n6509 & 1851.210 & 0.2252140 & 890.0 \\\\ \n4895 & 1239.660 & 0.3412730 & 890.0 \\\\ \n6775 & 1728.140 & 0.3116460 & 890.0 \\\\ \n7894 & 1461.060 & 0.2760160 & 890.0 \\\\ \n5980 & 1426.760 & 0.1976530 & 950.0 \\\\ \n5318 & 990.388 & 0.3266350 & 950.0 \\\\ \n7392 & 1350.760 & 0.1541920 & 950.0 \\\\ \n7894 & 1461.060 & 0.2760160 & 950.0 \\\\ \n3469 & 1376.700 & 0.1769690 & 100.0 \\\\ \n1468 & 476.322 & 0.4387120 & 100.0 \\\\ \n3524 & 1189.460 & 0.1635860 & 100.0 \\\\ \n5267 & 1644.960 & 0.2538320 & 100.0 \\\\ \n5048 & 941.543 & 0.3286410 & 1300.0 \\\\ \n1016 & 308.642 & 0.2300810 & 1300.0 \\\\ \n5605 & 1145.690 & 0.4641250 & 1300.0 \\\\ \n8793 & 2280.490 & 0.4204770 & 1300.0 \\\\ \n3475 & 1174.110 & 0.2007440 & 580.0 \\\\ \n1651 & 597.808 & 0.2626510 & 580.0 \\\\ \n5514 & 1455.880 & 0.1824530 & 580.0 \\\\ \n9718 & 1485.580 & 0.2004470 & 580.0 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{rrrr}\n\\toprule\n & \\multicolumn{2}{c}{perimeter} & \\\\ \n\\cmidrule(lr){2-3}\narea & peri & shape & perm \\\\ \n\\midrule\\addlinespace[2.5pt]\n4990 & 2791.900 & 0.0903296 & 6.3 \\\\ \n7002 & 3892.600 & 0.1486220 & 6.3 \\\\ \n7558 & 3930.660 & 0.1833120 & 6.3 \\\\ \n7352 & 3869.320 & 0.1170630 & 6.3 \\\\ \n7943 & 3948.540 & 0.1224170 & 17.1 \\\\ \n7979 & 4010.150 & 0.1670450 & 17.1 \\\\ \n9333 & 4345.750 & 0.1896510 & 17.1 \\\\ \n8209 & 4344.750 & 0.1641270 & 17.1 \\\\ \n8393 & 3682.040 & 0.2036540 & 119.0 \\\\ \n6425 & 3098.650 & 0.1623940 & 119.0 \\\\ \n9364 & 4480.050 & 0.1509440 & 119.0 \\\\ \n8624 & 3986.240 & 0.1481410 & 119.0 \\\\ \n10651 & 4036.540 & 0.2285950 & 82.4 \\\\ \n8868 & 3518.040 & 0.2316230 & 82.4 \\\\ \n9417 & 3999.370 & 0.1725670 & 82.4 \\\\ \n8874 & 3629.070 & 0.1534810 & 82.4 \\\\ \n10962 & 4608.660 & 0.2043140 & 58.6 \\\\ \n10743 & 4787.620 & 0.2627270 & 58.6 \\\\ \n11878 & 4864.220 & 0.2000710 & 58.6 \\\\ \n9867 & 4479.410 & 0.1448100 & 58.6 \\\\ \n7838 & 3428.740 & 0.1138520 & 142.0 \\\\ \n11876 & 4353.140 & 0.2910290 & 142.0 \\\\ \n12212 & 4697.650 & 0.2400770 & 142.0 \\\\ \n8233 & 3518.440 & 0.1618650 & 142.0 \\\\ \n6360 & 1977.390 & 0.2808870 & 740.0 \\\\ \n4193 & 1379.350 & 0.1794550 & 740.0 \\\\ \n7416 & 1916.240 & 0.1918020 & 740.0 \\\\ \n5246 & 1585.420 & 0.1330830 & 740.0 \\\\ \n6509 & 1851.210 & 0.2252140 & 890.0 \\\\ \n4895 & 1239.660 & 0.3412730 & 890.0 \\\\ \n6775 & 1728.140 & 0.3116460 & 890.0 \\\\ \n7894 & 1461.060 & 0.2760160 & 890.0 \\\\ \n5980 & 1426.760 & 0.1976530 & 950.0 \\\\ \n5318 & 990.388 & 0.3266350 & 950.0 \\\\ \n7392 & 1350.760 & 0.1541920 & 950.0 \\\\ \n7894 & 1461.060 & 0.2760160 & 950.0 \\\\ \n3469 & 1376.700 & 0.1769690 & 100.0 \\\\ \n1468 & 476.322 & 0.4387120 & 100.0 \\\\ \n3524 & 1189.460 & 0.1635860 & 100.0 \\\\ \n5267 & 1644.960 & 0.2538320 & 100.0 \\\\ \n5048 & 941.543 & 0.3286410 & 1300.0 \\\\ \n1016 & 308.642 & 0.2300810 & 1300.0 \\\\ \n5605 & 1145.690 & 0.4641250 & 1300.0 \\\\ \n8793 & 2280.490 & 0.4204770 & 1300.0 \\\\ \n3475 & 1174.110 & 0.2007440 & 580.0 \\\\ \n1651 & 597.808 & 0.2626510 & 580.0 \\\\ \n5514 & 1455.880 & 0.1824530 & 580.0 \\\\ \n9718 & 1485.580 & 0.2004470 & 580.0 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" --- Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{rrrrr}\n\\toprule\n & \\multicolumn{2}{c}{v\\_1\\_2} & \\multicolumn{2}{c}{v\\_4\\_5} \\\\ \n\\cmidrule(lr){2-3} \\cmidrule(lr){4-5}\nv\\_3 & v\\_1 & v\\_2 & v\\_4 & v\\_5 \\\\ \n\\midrule\\addlinespace[2.5pt]\n34.2 & 20.4 & 36.1 & 21.6 & 23.1 \\\\ \n13.7 & 25.8 & 14.3 & 12.9 & 75.9 \\\\ \n15.1 & 16.3 & 34.3 & 93.2 & 12.1 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{rrrrr}\n\\toprule\n & \\multicolumn{2}{c}{v\\_1\\_2} & \\multicolumn{2}{c}{v\\_4\\_5} \\\\ \n\\cmidrule(lr){2-3} \\cmidrule(lr){4-5}\nv\\_3 & v\\_1 & v\\_2 & v\\_4 & v\\_5 \\\\ \n\\midrule\\addlinespace[2.5pt]\n34.2 & 20.4 & 36.1 & 21.6 & 23.1 \\\\ \n13.7 & 25.8 & 14.3 & 12.9 & 75.9 \\\\ \n15.1 & 16.3 & 34.3 & 93.2 & 12.1 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" --- Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{rrrr}\n\\toprule\nA\\textsuperscript{\\textit{1}} & A & A\\textsuperscript{\\textit{1}} & A \\\\ \n\\cmidrule(lr){1-1} \\cmidrule(lr){2-2} \\cmidrule(lr){3-3} \\cmidrule(lr){4-4}\nA\\_X & B\\_X & A\\_Y & B\\_Y \\\\ \n\\midrule\\addlinespace[2.5pt]\n1 & 2 & 3 & 4 \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\n\\textsuperscript{\\textit{1}}note\\\\\n\\end{minipage}\n\\endgroup\n" + [1] "\\begingroup\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{rrrr}\n\\toprule\nA\\textsuperscript{\\textit{1}} & A & A\\textsuperscript{\\textit{1}} & A \\\\ \n\\cmidrule(lr){1-1} \\cmidrule(lr){2-2} \\cmidrule(lr){3-3} \\cmidrule(lr){4-4}\nA\\_X & B\\_X & A\\_Y & B\\_Y \\\\ \n\\midrule\\addlinespace[2.5pt]\n1 & 2 & 3 & 4 \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\n\\textsuperscript{\\textit{1}}note\\\\\n\\end{minipage}\n\\endgroup\n" --- Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{rrrr}\n\\toprule\n\\multicolumn{2}{c}{A\\textsuperscript{\\textit{1}}} & \\multicolumn{2}{c}{A} \\\\ \n\\cmidrule(lr){1-2} \\cmidrule(lr){3-4}\nA\\_X & A\\_Y & B\\_X & B\\_Y \\\\ \n\\midrule\\addlinespace[2.5pt]\n1 & 3 & 2 & 4 \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\n\\textsuperscript{\\textit{1}}note\\\\\n\\end{minipage}\n\\endgroup\n" + [1] "\\begingroup\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{rrrr}\n\\toprule\n\\multicolumn{2}{c}{A\\textsuperscript{\\textit{1}}} & \\multicolumn{2}{c}{A} \\\\ \n\\cmidrule(lr){1-2} \\cmidrule(lr){3-4}\nA\\_X & A\\_Y & B\\_X & B\\_Y \\\\ \n\\midrule\\addlinespace[2.5pt]\n1 & 3 & 2 & 4 \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\n\\textsuperscript{\\textit{1}}note\\\\\n\\end{minipage}\n\\endgroup\n" --- Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{rrrrc}\n\\toprule\n\\multicolumn{2}{c}{Sepal} & & & \\\\ \n\\cmidrule(lr){1-2}\nLength & Width & Petal.Length & Petal.Width & Species \\\\ \n\\midrule\\addlinespace[2.5pt]\n5.1 & 3.5 & 1.4 & 0.2 & setosa \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{rrrrc}\n\\toprule\n\\multicolumn{2}{c}{Sepal} & & & \\\\ \n\\cmidrule(lr){1-2}\nLength & Width & Petal.Length & Petal.Width & Species \\\\ \n\\midrule\\addlinespace[2.5pt]\n5.1 & 3.5 & 1.4 & 0.2 & setosa \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" # A gt table contains the expected source note Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{rrrrrrrrrrr}\n\\toprule\nmpg & cyl & disp & hp & drat & wt & qsec & vs & am & gear & carb \\\\ \n\\midrule\\addlinespace[2.5pt]\n21.0 & 6 & 160 & 110 & 3.90 & 2.620 & 16.46 & 0 & 1 & 4 & 4 \\\\ \n21.0 & 6 & 160 & 110 & 3.90 & 2.875 & 17.02 & 0 & 1 & 4 & 4 \\\\ \n22.8 & 4 & 108 & 93 & 3.85 & 2.320 & 18.61 & 1 & 1 & 4 & 1 \\\\ \n21.4 & 6 & 258 & 110 & 3.08 & 3.215 & 19.44 & 1 & 0 & 3 & 1 \\\\ \n18.7 & 8 & 360 & 175 & 3.15 & 3.440 & 17.02 & 0 & 0 & 3 & 2 \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\n\\emph{Henderson and Velleman} (1981).\\\\\n\\end{minipage}\n\\endgroup\n" + [1] "\\begingroup\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{rrrrrrrrrrr}\n\\toprule\nmpg & cyl & disp & hp & drat & wt & qsec & vs & am & gear & carb \\\\ \n\\midrule\\addlinespace[2.5pt]\n21.0 & 6 & 160 & 110 & 3.90 & 2.620 & 16.46 & 0 & 1 & 4 & 4 \\\\ \n21.0 & 6 & 160 & 110 & 3.90 & 2.875 & 17.02 & 0 & 1 & 4 & 4 \\\\ \n22.8 & 4 & 108 & 93 & 3.85 & 2.320 & 18.61 & 1 & 1 & 4 & 1 \\\\ \n21.4 & 6 & 258 & 110 & 3.08 & 3.215 & 19.44 & 1 & 0 & 3 & 1 \\\\ \n18.7 & 8 & 360 & 175 & 3.15 & 3.440 & 17.02 & 0 & 0 & 3 & 2 \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\n\\emph{Henderson and Velleman} (1981).\\\\\n\\end{minipage}\n\\endgroup\n" --- Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{rrrrrrrrrrr}\n\\toprule\nmpg & cyl & disp & hp & drat & wt & qsec & vs & am & gear & carb \\\\ \n\\midrule\\addlinespace[2.5pt]\n21.0 & 6 & 160 & 110 & 3.90 & 2.620 & 16.46 & 0 & 1 & 4 & 4 \\\\ \n21.0 & 6 & 160 & 110 & 3.90 & 2.875 & 17.02 & 0 & 1 & 4 & 4 \\\\ \n22.8 & 4 & 108 & 93 & 3.85 & 2.320 & 18.61 & 1 & 1 & 4 & 1 \\\\ \n21.4 & 6 & 258 & 110 & 3.08 & 3.215 & 19.44 & 1 & 0 & 3 & 1 \\\\ \n18.7 & 8 & 360 & 175 & 3.15 & 3.440 & 17.02 & 0 & 0 & 3 & 2 \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\n\\emph{Henderson and Velleman} (1981).\\\\\nThis was in Motor Trend magazine, hence the `mt`.\\\\\n\\end{minipage}\n\\endgroup\n" + [1] "\\begingroup\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{rrrrrrrrrrr}\n\\toprule\nmpg & cyl & disp & hp & drat & wt & qsec & vs & am & gear & carb \\\\ \n\\midrule\\addlinespace[2.5pt]\n21.0 & 6 & 160 & 110 & 3.90 & 2.620 & 16.46 & 0 & 1 & 4 & 4 \\\\ \n21.0 & 6 & 160 & 110 & 3.90 & 2.875 & 17.02 & 0 & 1 & 4 & 4 \\\\ \n22.8 & 4 & 108 & 93 & 3.85 & 2.320 & 18.61 & 1 & 1 & 4 & 1 \\\\ \n21.4 & 6 & 258 & 110 & 3.08 & 3.215 & 19.44 & 1 & 0 & 3 & 1 \\\\ \n18.7 & 8 & 360 & 175 & 3.15 & 3.440 & 17.02 & 0 & 0 & 3 & 2 \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\n\\emph{Henderson and Velleman} (1981).\\\\\nThis was in Motor Trend magazine, hence the `mt`.\\\\\n\\end{minipage}\n\\endgroup\n" # A gt table contains the correct placement of row groups Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{l|rrrrrrrrrrr}\n\\toprule\n & mpg & cyl & disp & hp & drat & wt & qsec & vs & am & gear & carb \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{12}{l}{Mazda} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\nMazda RX4 & 21.0 & 6 & 160.0 & 110 & 3.90 & 2.620 & 16.46 & 0 & 1 & 4 & 4 \\\\ \nMazda RX4 Wag & 21.0 & 6 & 160.0 & 110 & 3.90 & 2.875 & 17.02 & 0 & 1 & 4 & 4 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{12}{l}{\\rule{0pt}{0pt}} \\\\[-3.2ex] \n\\midrule\\addlinespace[2.5pt]\nDatsun 710 & 22.8 & 4 & 108.0 & 93 & 3.85 & 2.320 & 18.61 & 1 & 1 & 4 & 1 \\\\ \nHornet 4 Drive & 21.4 & 6 & 258.0 & 110 & 3.08 & 3.215 & 19.44 & 1 & 0 & 3 & 1 \\\\ \nHornet Sportabout & 18.7 & 8 & 360.0 & 175 & 3.15 & 3.440 & 17.02 & 0 & 0 & 3 & 2 \\\\ \nValiant & 18.1 & 6 & 225.0 & 105 & 2.76 & 3.460 & 20.22 & 1 & 0 & 3 & 1 \\\\ \nDuster 360 & 14.3 & 8 & 360.0 & 245 & 3.21 & 3.570 & 15.84 & 0 & 0 & 3 & 4 \\\\ \nMerc 240D & 24.4 & 4 & 146.7 & 62 & 3.69 & 3.190 & 20.00 & 1 & 0 & 4 & 2 \\\\ \nMerc 230 & 22.8 & 4 & 140.8 & 95 & 3.92 & 3.150 & 22.90 & 1 & 0 & 4 & 2 \\\\ \nMerc 280 & 19.2 & 6 & 167.6 & 123 & 3.92 & 3.440 & 18.30 & 1 & 0 & 4 & 4 \\\\ \nMerc 280C & 17.8 & 6 & 167.6 & 123 & 3.92 & 3.440 & 18.90 & 1 & 0 & 4 & 4 \\\\ \nMerc 450SE & 16.4 & 8 & 275.8 & 180 & 3.07 & 4.070 & 17.40 & 0 & 0 & 3 & 3 \\\\ \nMerc 450SL & 17.3 & 8 & 275.8 & 180 & 3.07 & 3.730 & 17.60 & 0 & 0 & 3 & 3 \\\\ \nMerc 450SLC & 15.2 & 8 & 275.8 & 180 & 3.07 & 3.780 & 18.00 & 0 & 0 & 3 & 3 \\\\ \nCadillac Fleetwood & 10.4 & 8 & 472.0 & 205 & 2.93 & 5.250 & 17.98 & 0 & 0 & 3 & 4 \\\\ \nLincoln Continental & 10.4 & 8 & 460.0 & 215 & 3.00 & 5.424 & 17.82 & 0 & 0 & 3 & 4 \\\\ \nChrysler Imperial & 14.7 & 8 & 440.0 & 230 & 3.23 & 5.345 & 17.42 & 0 & 0 & 3 & 4 \\\\ \nFiat 128 & 32.4 & 4 & 78.7 & 66 & 4.08 & 2.200 & 19.47 & 1 & 1 & 4 & 1 \\\\ \nHonda Civic & 30.4 & 4 & 75.7 & 52 & 4.93 & 1.615 & 18.52 & 1 & 1 & 4 & 2 \\\\ \nToyota Corolla & 33.9 & 4 & 71.1 & 65 & 4.22 & 1.835 & 19.90 & 1 & 1 & 4 & 1 \\\\ \nToyota Corona & 21.5 & 4 & 120.1 & 97 & 3.70 & 2.465 & 20.01 & 1 & 0 & 3 & 1 \\\\ \nDodge Challenger & 15.5 & 8 & 318.0 & 150 & 2.76 & 3.520 & 16.87 & 0 & 0 & 3 & 2 \\\\ \nAMC Javelin & 15.2 & 8 & 304.0 & 150 & 3.15 & 3.435 & 17.30 & 0 & 0 & 3 & 2 \\\\ \nCamaro Z28 & 13.3 & 8 & 350.0 & 245 & 3.73 & 3.840 & 15.41 & 0 & 0 & 3 & 4 \\\\ \nPontiac Firebird & 19.2 & 8 & 400.0 & 175 & 3.08 & 3.845 & 17.05 & 0 & 0 & 3 & 2 \\\\ \nFiat X1-9 & 27.3 & 4 & 79.0 & 66 & 4.08 & 1.935 & 18.90 & 1 & 1 & 4 & 1 \\\\ \nPorsche 914-2 & 26.0 & 4 & 120.3 & 91 & 4.43 & 2.140 & 16.70 & 0 & 1 & 5 & 2 \\\\ \nLotus Europa & 30.4 & 4 & 95.1 & 113 & 3.77 & 1.513 & 16.90 & 1 & 1 & 5 & 2 \\\\ \nFord Pantera L & 15.8 & 8 & 351.0 & 264 & 4.22 & 3.170 & 14.50 & 0 & 1 & 5 & 4 \\\\ \nFerrari Dino & 19.7 & 6 & 145.0 & 175 & 3.62 & 2.770 & 15.50 & 0 & 1 & 5 & 6 \\\\ \nMaserati Bora & 15.0 & 8 & 301.0 & 335 & 3.54 & 3.570 & 14.60 & 0 & 1 & 5 & 8 \\\\ \nVolvo 142E & 21.4 & 4 & 121.0 & 109 & 4.11 & 2.780 & 18.60 & 1 & 1 & 4 & 2 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{l|rrrrrrrrrrr}\n\\toprule\n & mpg & cyl & disp & hp & drat & wt & qsec & vs & am & gear & carb \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{12}{l}{Mazda} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\nMazda RX4 & 21.0 & 6 & 160.0 & 110 & 3.90 & 2.620 & 16.46 & 0 & 1 & 4 & 4 \\\\ \nMazda RX4 Wag & 21.0 & 6 & 160.0 & 110 & 3.90 & 2.875 & 17.02 & 0 & 1 & 4 & 4 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{12}{l}{\\rule{0pt}{0pt}} \\\\[-3.2ex] \n\\midrule\\addlinespace[2.5pt]\nDatsun 710 & 22.8 & 4 & 108.0 & 93 & 3.85 & 2.320 & 18.61 & 1 & 1 & 4 & 1 \\\\ \nHornet 4 Drive & 21.4 & 6 & 258.0 & 110 & 3.08 & 3.215 & 19.44 & 1 & 0 & 3 & 1 \\\\ \nHornet Sportabout & 18.7 & 8 & 360.0 & 175 & 3.15 & 3.440 & 17.02 & 0 & 0 & 3 & 2 \\\\ \nValiant & 18.1 & 6 & 225.0 & 105 & 2.76 & 3.460 & 20.22 & 1 & 0 & 3 & 1 \\\\ \nDuster 360 & 14.3 & 8 & 360.0 & 245 & 3.21 & 3.570 & 15.84 & 0 & 0 & 3 & 4 \\\\ \nMerc 240D & 24.4 & 4 & 146.7 & 62 & 3.69 & 3.190 & 20.00 & 1 & 0 & 4 & 2 \\\\ \nMerc 230 & 22.8 & 4 & 140.8 & 95 & 3.92 & 3.150 & 22.90 & 1 & 0 & 4 & 2 \\\\ \nMerc 280 & 19.2 & 6 & 167.6 & 123 & 3.92 & 3.440 & 18.30 & 1 & 0 & 4 & 4 \\\\ \nMerc 280C & 17.8 & 6 & 167.6 & 123 & 3.92 & 3.440 & 18.90 & 1 & 0 & 4 & 4 \\\\ \nMerc 450SE & 16.4 & 8 & 275.8 & 180 & 3.07 & 4.070 & 17.40 & 0 & 0 & 3 & 3 \\\\ \nMerc 450SL & 17.3 & 8 & 275.8 & 180 & 3.07 & 3.730 & 17.60 & 0 & 0 & 3 & 3 \\\\ \nMerc 450SLC & 15.2 & 8 & 275.8 & 180 & 3.07 & 3.780 & 18.00 & 0 & 0 & 3 & 3 \\\\ \nCadillac Fleetwood & 10.4 & 8 & 472.0 & 205 & 2.93 & 5.250 & 17.98 & 0 & 0 & 3 & 4 \\\\ \nLincoln Continental & 10.4 & 8 & 460.0 & 215 & 3.00 & 5.424 & 17.82 & 0 & 0 & 3 & 4 \\\\ \nChrysler Imperial & 14.7 & 8 & 440.0 & 230 & 3.23 & 5.345 & 17.42 & 0 & 0 & 3 & 4 \\\\ \nFiat 128 & 32.4 & 4 & 78.7 & 66 & 4.08 & 2.200 & 19.47 & 1 & 1 & 4 & 1 \\\\ \nHonda Civic & 30.4 & 4 & 75.7 & 52 & 4.93 & 1.615 & 18.52 & 1 & 1 & 4 & 2 \\\\ \nToyota Corolla & 33.9 & 4 & 71.1 & 65 & 4.22 & 1.835 & 19.90 & 1 & 1 & 4 & 1 \\\\ \nToyota Corona & 21.5 & 4 & 120.1 & 97 & 3.70 & 2.465 & 20.01 & 1 & 0 & 3 & 1 \\\\ \nDodge Challenger & 15.5 & 8 & 318.0 & 150 & 2.76 & 3.520 & 16.87 & 0 & 0 & 3 & 2 \\\\ \nAMC Javelin & 15.2 & 8 & 304.0 & 150 & 3.15 & 3.435 & 17.30 & 0 & 0 & 3 & 2 \\\\ \nCamaro Z28 & 13.3 & 8 & 350.0 & 245 & 3.73 & 3.840 & 15.41 & 0 & 0 & 3 & 4 \\\\ \nPontiac Firebird & 19.2 & 8 & 400.0 & 175 & 3.08 & 3.845 & 17.05 & 0 & 0 & 3 & 2 \\\\ \nFiat X1-9 & 27.3 & 4 & 79.0 & 66 & 4.08 & 1.935 & 18.90 & 1 & 1 & 4 & 1 \\\\ \nPorsche 914-2 & 26.0 & 4 & 120.3 & 91 & 4.43 & 2.140 & 16.70 & 0 & 1 & 5 & 2 \\\\ \nLotus Europa & 30.4 & 4 & 95.1 & 113 & 3.77 & 1.513 & 16.90 & 1 & 1 & 5 & 2 \\\\ \nFord Pantera L & 15.8 & 8 & 351.0 & 264 & 4.22 & 3.170 & 14.50 & 0 & 1 & 5 & 4 \\\\ \nFerrari Dino & 19.7 & 6 & 145.0 & 175 & 3.62 & 2.770 & 15.50 & 0 & 1 & 5 & 6 \\\\ \nMaserati Bora & 15.0 & 8 & 301.0 & 335 & 3.54 & 3.570 & 14.60 & 0 & 1 & 5 & 8 \\\\ \nVolvo 142E & 21.4 & 4 & 121.0 & 109 & 4.11 & 2.780 & 18.60 & 1 & 1 & 4 & 2 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" --- Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{l|rrrrrrrrrrr}\n\\toprule\n & mpg & cyl & disp & hp & drat & wt & qsec & vs & am & gear & carb \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{12}{l}{\\rule{0pt}{0pt}} \\\\[-3.2ex] \n\\midrule\\addlinespace[2.5pt]\nDatsun 710 & 22.8 & 4 & 108.0 & 93 & 3.85 & 2.320 & 18.61 & 1 & 1 & 4 & 1 \\\\ \nHornet 4 Drive & 21.4 & 6 & 258.0 & 110 & 3.08 & 3.215 & 19.44 & 1 & 0 & 3 & 1 \\\\ \nHornet Sportabout & 18.7 & 8 & 360.0 & 175 & 3.15 & 3.440 & 17.02 & 0 & 0 & 3 & 2 \\\\ \nValiant & 18.1 & 6 & 225.0 & 105 & 2.76 & 3.460 & 20.22 & 1 & 0 & 3 & 1 \\\\ \nDuster 360 & 14.3 & 8 & 360.0 & 245 & 3.21 & 3.570 & 15.84 & 0 & 0 & 3 & 4 \\\\ \nCadillac Fleetwood & 10.4 & 8 & 472.0 & 205 & 2.93 & 5.250 & 17.98 & 0 & 0 & 3 & 4 \\\\ \nLincoln Continental & 10.4 & 8 & 460.0 & 215 & 3.00 & 5.424 & 17.82 & 0 & 0 & 3 & 4 \\\\ \nChrysler Imperial & 14.7 & 8 & 440.0 & 230 & 3.23 & 5.345 & 17.42 & 0 & 0 & 3 & 4 \\\\ \nFiat 128 & 32.4 & 4 & 78.7 & 66 & 4.08 & 2.200 & 19.47 & 1 & 1 & 4 & 1 \\\\ \nHonda Civic & 30.4 & 4 & 75.7 & 52 & 4.93 & 1.615 & 18.52 & 1 & 1 & 4 & 2 \\\\ \nToyota Corolla & 33.9 & 4 & 71.1 & 65 & 4.22 & 1.835 & 19.90 & 1 & 1 & 4 & 1 \\\\ \nToyota Corona & 21.5 & 4 & 120.1 & 97 & 3.70 & 2.465 & 20.01 & 1 & 0 & 3 & 1 \\\\ \nDodge Challenger & 15.5 & 8 & 318.0 & 150 & 2.76 & 3.520 & 16.87 & 0 & 0 & 3 & 2 \\\\ \nAMC Javelin & 15.2 & 8 & 304.0 & 150 & 3.15 & 3.435 & 17.30 & 0 & 0 & 3 & 2 \\\\ \nCamaro Z28 & 13.3 & 8 & 350.0 & 245 & 3.73 & 3.840 & 15.41 & 0 & 0 & 3 & 4 \\\\ \nPontiac Firebird & 19.2 & 8 & 400.0 & 175 & 3.08 & 3.845 & 17.05 & 0 & 0 & 3 & 2 \\\\ \nFiat X1-9 & 27.3 & 4 & 79.0 & 66 & 4.08 & 1.935 & 18.90 & 1 & 1 & 4 & 1 \\\\ \nPorsche 914-2 & 26.0 & 4 & 120.3 & 91 & 4.43 & 2.140 & 16.70 & 0 & 1 & 5 & 2 \\\\ \nLotus Europa & 30.4 & 4 & 95.1 & 113 & 3.77 & 1.513 & 16.90 & 1 & 1 & 5 & 2 \\\\ \nFord Pantera L & 15.8 & 8 & 351.0 & 264 & 4.22 & 3.170 & 14.50 & 0 & 1 & 5 & 4 \\\\ \nFerrari Dino & 19.7 & 6 & 145.0 & 175 & 3.62 & 2.770 & 15.50 & 0 & 1 & 5 & 6 \\\\ \nMaserati Bora & 15.0 & 8 & 301.0 & 335 & 3.54 & 3.570 & 14.60 & 0 & 1 & 5 & 8 \\\\ \nVolvo 142E & 21.4 & 4 & 121.0 & 109 & 4.11 & 2.780 & 18.60 & 1 & 1 & 4 & 2 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{12}{l}{Mazda} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\nMazda RX4 & 21.0 & 6 & 160.0 & 110 & 3.90 & 2.620 & 16.46 & 0 & 1 & 4 & 4 \\\\ \nMazda RX4 Wag & 21.0 & 6 & 160.0 & 110 & 3.90 & 2.875 & 17.02 & 0 & 1 & 4 & 4 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{12}{l}{Mercs} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\nMerc 240D & 24.4 & 4 & 146.7 & 62 & 3.69 & 3.190 & 20.00 & 1 & 0 & 4 & 2 \\\\ \nMerc 230 & 22.8 & 4 & 140.8 & 95 & 3.92 & 3.150 & 22.90 & 1 & 0 & 4 & 2 \\\\ \nMerc 280 & 19.2 & 6 & 167.6 & 123 & 3.92 & 3.440 & 18.30 & 1 & 0 & 4 & 4 \\\\ \nMerc 280C & 17.8 & 6 & 167.6 & 123 & 3.92 & 3.440 & 18.90 & 1 & 0 & 4 & 4 \\\\ \nMerc 450SE & 16.4 & 8 & 275.8 & 180 & 3.07 & 4.070 & 17.40 & 0 & 0 & 3 & 3 \\\\ \nMerc 450SL & 17.3 & 8 & 275.8 & 180 & 3.07 & 3.730 & 17.60 & 0 & 0 & 3 & 3 \\\\ \nMerc 450SLC & 15.2 & 8 & 275.8 & 180 & 3.07 & 3.780 & 18.00 & 0 & 0 & 3 & 3 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{l|rrrrrrrrrrr}\n\\toprule\n & mpg & cyl & disp & hp & drat & wt & qsec & vs & am & gear & carb \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{12}{l}{\\rule{0pt}{0pt}} \\\\[-3.2ex] \n\\midrule\\addlinespace[2.5pt]\nDatsun 710 & 22.8 & 4 & 108.0 & 93 & 3.85 & 2.320 & 18.61 & 1 & 1 & 4 & 1 \\\\ \nHornet 4 Drive & 21.4 & 6 & 258.0 & 110 & 3.08 & 3.215 & 19.44 & 1 & 0 & 3 & 1 \\\\ \nHornet Sportabout & 18.7 & 8 & 360.0 & 175 & 3.15 & 3.440 & 17.02 & 0 & 0 & 3 & 2 \\\\ \nValiant & 18.1 & 6 & 225.0 & 105 & 2.76 & 3.460 & 20.22 & 1 & 0 & 3 & 1 \\\\ \nDuster 360 & 14.3 & 8 & 360.0 & 245 & 3.21 & 3.570 & 15.84 & 0 & 0 & 3 & 4 \\\\ \nCadillac Fleetwood & 10.4 & 8 & 472.0 & 205 & 2.93 & 5.250 & 17.98 & 0 & 0 & 3 & 4 \\\\ \nLincoln Continental & 10.4 & 8 & 460.0 & 215 & 3.00 & 5.424 & 17.82 & 0 & 0 & 3 & 4 \\\\ \nChrysler Imperial & 14.7 & 8 & 440.0 & 230 & 3.23 & 5.345 & 17.42 & 0 & 0 & 3 & 4 \\\\ \nFiat 128 & 32.4 & 4 & 78.7 & 66 & 4.08 & 2.200 & 19.47 & 1 & 1 & 4 & 1 \\\\ \nHonda Civic & 30.4 & 4 & 75.7 & 52 & 4.93 & 1.615 & 18.52 & 1 & 1 & 4 & 2 \\\\ \nToyota Corolla & 33.9 & 4 & 71.1 & 65 & 4.22 & 1.835 & 19.90 & 1 & 1 & 4 & 1 \\\\ \nToyota Corona & 21.5 & 4 & 120.1 & 97 & 3.70 & 2.465 & 20.01 & 1 & 0 & 3 & 1 \\\\ \nDodge Challenger & 15.5 & 8 & 318.0 & 150 & 2.76 & 3.520 & 16.87 & 0 & 0 & 3 & 2 \\\\ \nAMC Javelin & 15.2 & 8 & 304.0 & 150 & 3.15 & 3.435 & 17.30 & 0 & 0 & 3 & 2 \\\\ \nCamaro Z28 & 13.3 & 8 & 350.0 & 245 & 3.73 & 3.840 & 15.41 & 0 & 0 & 3 & 4 \\\\ \nPontiac Firebird & 19.2 & 8 & 400.0 & 175 & 3.08 & 3.845 & 17.05 & 0 & 0 & 3 & 2 \\\\ \nFiat X1-9 & 27.3 & 4 & 79.0 & 66 & 4.08 & 1.935 & 18.90 & 1 & 1 & 4 & 1 \\\\ \nPorsche 914-2 & 26.0 & 4 & 120.3 & 91 & 4.43 & 2.140 & 16.70 & 0 & 1 & 5 & 2 \\\\ \nLotus Europa & 30.4 & 4 & 95.1 & 113 & 3.77 & 1.513 & 16.90 & 1 & 1 & 5 & 2 \\\\ \nFord Pantera L & 15.8 & 8 & 351.0 & 264 & 4.22 & 3.170 & 14.50 & 0 & 1 & 5 & 4 \\\\ \nFerrari Dino & 19.7 & 6 & 145.0 & 175 & 3.62 & 2.770 & 15.50 & 0 & 1 & 5 & 6 \\\\ \nMaserati Bora & 15.0 & 8 & 301.0 & 335 & 3.54 & 3.570 & 14.60 & 0 & 1 & 5 & 8 \\\\ \nVolvo 142E & 21.4 & 4 & 121.0 & 109 & 4.11 & 2.780 & 18.60 & 1 & 1 & 4 & 2 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{12}{l}{Mazda} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\nMazda RX4 & 21.0 & 6 & 160.0 & 110 & 3.90 & 2.620 & 16.46 & 0 & 1 & 4 & 4 \\\\ \nMazda RX4 Wag & 21.0 & 6 & 160.0 & 110 & 3.90 & 2.875 & 17.02 & 0 & 1 & 4 & 4 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{12}{l}{Mercs} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\nMerc 240D & 24.4 & 4 & 146.7 & 62 & 3.69 & 3.190 & 20.00 & 1 & 0 & 4 & 2 \\\\ \nMerc 230 & 22.8 & 4 & 140.8 & 95 & 3.92 & 3.150 & 22.90 & 1 & 0 & 4 & 2 \\\\ \nMerc 280 & 19.2 & 6 & 167.6 & 123 & 3.92 & 3.440 & 18.30 & 1 & 0 & 4 & 4 \\\\ \nMerc 280C & 17.8 & 6 & 167.6 & 123 & 3.92 & 3.440 & 18.90 & 1 & 0 & 4 & 4 \\\\ \nMerc 450SE & 16.4 & 8 & 275.8 & 180 & 3.07 & 4.070 & 17.40 & 0 & 0 & 3 & 3 \\\\ \nMerc 450SL & 17.3 & 8 & 275.8 & 180 & 3.07 & 3.730 & 17.60 & 0 & 0 & 3 & 3 \\\\ \nMerc 450SLC & 15.2 & 8 & 275.8 & 180 & 3.07 & 3.780 & 18.00 & 0 & 0 & 3 & 3 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" diff --git a/tests/testthat/_snaps/summary_rows.md b/tests/testthat/_snaps/summary_rows.md index ce26e3eb1b..1512e03246 100644 --- a/tests/testthat/_snaps/summary_rows.md +++ b/tests/testthat/_snaps/summary_rows.md @@ -105,7 +105,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{l|rrrr}\n\\toprule\n & open & high & low & close \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W02} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16440 & 2054.44 & 2054.44 & 2017.34 & 2020.58 \\\\ \n16441 & 2022.15 & 2030.25 & 1992.44 & 2002.61 \\\\ \n16442 & 2005.55 & 2029.61 & 2005.55 & 2025.90 \\\\ \n16443 & 2030.61 & 2064.08 & 2030.61 & 2062.14 \\\\ \n16444 & 2063.45 & 2064.43 & 2038.33 & 2044.81 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W03} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16447 & 2046.13 & 2049.30 & 2022.58 & 2028.26 \\\\ \n16448 & 2031.58 & 2056.93 & 2008.25 & 2023.03 \\\\ \n16449 & 2018.40 & 2018.40 & 1988.44 & 2011.27 \\\\ \n16450 & 2013.75 & 2021.35 & 1991.47 & 1992.67 \\\\ \n16451 & 1992.25 & 2020.46 & 1988.12 & 2019.42 \\\\ \n\\midrule \n\\midrule \naverage & 2027.83099 & — & — & — \\\\ \ntotal & 20278.30990 & — & — & — \\\\ \nstd dev & 22.14929 & — & — & — \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{l|rrrr}\n\\toprule\n & open & high & low & close \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W02} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16440 & 2054.44 & 2054.44 & 2017.34 & 2020.58 \\\\ \n16441 & 2022.15 & 2030.25 & 1992.44 & 2002.61 \\\\ \n16442 & 2005.55 & 2029.61 & 2005.55 & 2025.90 \\\\ \n16443 & 2030.61 & 2064.08 & 2030.61 & 2062.14 \\\\ \n16444 & 2063.45 & 2064.43 & 2038.33 & 2044.81 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W03} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16447 & 2046.13 & 2049.30 & 2022.58 & 2028.26 \\\\ \n16448 & 2031.58 & 2056.93 & 2008.25 & 2023.03 \\\\ \n16449 & 2018.40 & 2018.40 & 1988.44 & 2011.27 \\\\ \n16450 & 2013.75 & 2021.35 & 1991.47 & 1992.67 \\\\ \n16451 & 1992.25 & 2020.46 & 1988.12 & 2019.42 \\\\ \n\\midrule \n\\midrule \naverage & 2027.83099 & — & — & — \\\\ \ntotal & 20278.30990 & — & — & — \\\\ \nstd dev & 22.14929 & — & — & — \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" --- @@ -498,7 +498,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{l|rrrr}\n\\toprule\n & open & high & low & close \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W02} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\nmin & 2005.55 & 2029.61 & 1992.44 & 2002.61 \\\\ \nmax & 2063.45 & 2064.43 & 2038.33 & 2062.14 \\\\ \navg & 2035.24 & 2048.56 & 2016.85 & 2031.21 \\\\ \n\\midrule \n16440 & 2054.44 & 2054.44 & 2017.34 & 2020.58 \\\\ \n16441 & 2022.15 & 2030.25 & 1992.44 & 2002.61 \\\\ \n16442 & 2005.55 & 2029.61 & 2005.55 & 2025.90 \\\\ \n16443 & 2030.61 & 2064.08 & 2030.61 & 2062.14 \\\\ \n16444 & 2063.45 & 2064.43 & 2038.33 & 2044.81 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W03} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16447 & 2046.13 & 2049.30 & 2022.58 & 2028.26 \\\\ \n16448 & 2031.58 & 2056.93 & 2008.25 & 2023.03 \\\\ \n16449 & 2018.40 & 2018.40 & 1988.44 & 2011.27 \\\\ \n16450 & 2013.75 & 2021.35 & 1991.47 & 1992.67 \\\\ \n16451 & 1992.25 & 2020.46 & 1988.12 & 2019.42 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{l|rrrr}\n\\toprule\n & open & high & low & close \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W02} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\nmin & 2005.55 & 2029.61 & 1992.44 & 2002.61 \\\\ \nmax & 2063.45 & 2064.43 & 2038.33 & 2062.14 \\\\ \navg & 2035.24 & 2048.56 & 2016.85 & 2031.21 \\\\ \n\\midrule \n16440 & 2054.44 & 2054.44 & 2017.34 & 2020.58 \\\\ \n16441 & 2022.15 & 2030.25 & 1992.44 & 2002.61 \\\\ \n16442 & 2005.55 & 2029.61 & 2005.55 & 2025.90 \\\\ \n16443 & 2030.61 & 2064.08 & 2030.61 & 2062.14 \\\\ \n16444 & 2063.45 & 2064.43 & 2038.33 & 2044.81 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W03} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16447 & 2046.13 & 2049.30 & 2022.58 & 2028.26 \\\\ \n16448 & 2031.58 & 2056.93 & 2008.25 & 2023.03 \\\\ \n16449 & 2018.40 & 2018.40 & 1988.44 & 2011.27 \\\\ \n16450 & 2013.75 & 2021.35 & 1991.47 & 1992.67 \\\\ \n16451 & 1992.25 & 2020.46 & 1988.12 & 2019.42 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" --- @@ -592,7 +592,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{l|l|rrrr}\n\\toprule\n\\multicolumn{2}{c}{} & open & high & low & close \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multirow{8}{*}{W02} & \\multicolumn{1}{l|}{min} & 2005.55 & 2029.61 & 1992.44 & 2002.61 \\\\ \n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{max} & 2063.45 & 2064.43 & 2038.33 & 2062.14 \\\\ \n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{avg} & 2035.24 & 2048.56 & 2016.85 & 2031.21 \\\\ \n\\cmidrule(l{-0.05em}r){2-6}\n & 16440 & 2054.44 & 2054.44 & 2017.34 & 2020.58 \\\\ \n & 16441 & 2022.15 & 2030.25 & 1992.44 & 2002.61 \\\\ \n & 16442 & 2005.55 & 2029.61 & 2005.55 & 2025.90 \\\\ \n & 16443 & 2030.61 & 2064.08 & 2030.61 & 2062.14 \\\\ \n & 16444 & 2063.45 & 2064.43 & 2038.33 & 2044.81 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multirow{5}{*}{W03} & 16447 & 2046.13 & 2049.30 & 2022.58 & 2028.26 \\\\ \n & 16448 & 2031.58 & 2056.93 & 2008.25 & 2023.03 \\\\ \n & 16449 & 2018.40 & 2018.40 & 1988.44 & 2011.27 \\\\ \n & 16450 & 2013.75 & 2021.35 & 1991.47 & 1992.67 \\\\ \n & 16451 & 1992.25 & 2020.46 & 1988.12 & 2019.42 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{l|l|rrrr}\n\\toprule\n\\multicolumn{2}{c}{} & open & high & low & close \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multirow{8}{*}{W02} & \\multicolumn{1}{l|}{min} & 2005.55 & 2029.61 & 1992.44 & 2002.61 \\\\ \n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{max} & 2063.45 & 2064.43 & 2038.33 & 2062.14 \\\\ \n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{avg} & 2035.24 & 2048.56 & 2016.85 & 2031.21 \\\\ \n\\cmidrule(l{-0.05em}r){2-6}\n & 16440 & 2054.44 & 2054.44 & 2017.34 & 2020.58 \\\\ \n & 16441 & 2022.15 & 2030.25 & 1992.44 & 2002.61 \\\\ \n & 16442 & 2005.55 & 2029.61 & 2005.55 & 2025.90 \\\\ \n & 16443 & 2030.61 & 2064.08 & 2030.61 & 2062.14 \\\\ \n & 16444 & 2063.45 & 2064.43 & 2038.33 & 2044.81 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multirow{5}{*}{W03} & 16447 & 2046.13 & 2049.30 & 2022.58 & 2028.26 \\\\ \n & 16448 & 2031.58 & 2056.93 & 2008.25 & 2023.03 \\\\ \n & 16449 & 2018.40 & 2018.40 & 1988.44 & 2011.27 \\\\ \n & 16450 & 2013.75 & 2021.35 & 1991.47 & 1992.67 \\\\ \n & 16451 & 1992.25 & 2020.46 & 1988.12 & 2019.42 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" --- @@ -706,7 +706,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{l|rrrr}\n\\toprule\n & open & high & low & close \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W02} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\nmin & 2005.55 & 2029.61 & 1992.44 & 2002.61 \\\\ \nmax & 2063.45 & 2064.43 & 2038.33 & 2062.14 \\\\ \navg & 2035.24 & 2048.56 & 2016.85 & 2031.21 \\\\ \n\\midrule \n16440 & 2054.44 & 2054.44 & 2017.34 & 2020.58 \\\\ \n16441 & 2022.15 & 2030.25 & 1992.44 & 2002.61 \\\\ \n16442 & 2005.55 & 2029.61 & 2005.55 & 2025.90 \\\\ \n16443 & 2030.61 & 2064.08 & 2030.61 & 2062.14 \\\\ \n16444 & 2063.45 & 2064.43 & 2038.33 & 2044.81 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W03} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16447 & 2046.13 & 2049.30 & 2022.58 & 2028.26 \\\\ \n16448 & 2031.58 & 2056.93 & 2008.25 & 2023.03 \\\\ \n16449 & 2018.40 & 2018.40 & 1988.44 & 2011.27 \\\\ \n16450 & 2013.75 & 2021.35 & 1991.47 & 1992.67 \\\\ \n16451 & 1992.25 & 2020.46 & 1988.12 & 2019.42 \\\\ \n\\midrule \nmin & 1992.25 & 2018.40 & 1988.12 & 1992.67 \\\\ \nmax & 2046.13 & 2056.93 & 2022.58 & 2028.26 \\\\ \navg & 2020.42 & 2033.29 & 1999.77 & 2014.93 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{l|rrrr}\n\\toprule\n & open & high & low & close \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W02} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\nmin & 2005.55 & 2029.61 & 1992.44 & 2002.61 \\\\ \nmax & 2063.45 & 2064.43 & 2038.33 & 2062.14 \\\\ \navg & 2035.24 & 2048.56 & 2016.85 & 2031.21 \\\\ \n\\midrule \n16440 & 2054.44 & 2054.44 & 2017.34 & 2020.58 \\\\ \n16441 & 2022.15 & 2030.25 & 1992.44 & 2002.61 \\\\ \n16442 & 2005.55 & 2029.61 & 2005.55 & 2025.90 \\\\ \n16443 & 2030.61 & 2064.08 & 2030.61 & 2062.14 \\\\ \n16444 & 2063.45 & 2064.43 & 2038.33 & 2044.81 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W03} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16447 & 2046.13 & 2049.30 & 2022.58 & 2028.26 \\\\ \n16448 & 2031.58 & 2056.93 & 2008.25 & 2023.03 \\\\ \n16449 & 2018.40 & 2018.40 & 1988.44 & 2011.27 \\\\ \n16450 & 2013.75 & 2021.35 & 1991.47 & 1992.67 \\\\ \n16451 & 1992.25 & 2020.46 & 1988.12 & 2019.42 \\\\ \n\\midrule \nmin & 1992.25 & 2018.40 & 1988.12 & 1992.67 \\\\ \nmax & 2046.13 & 2056.93 & 2022.58 & 2028.26 \\\\ \navg & 2020.42 & 2033.29 & 1999.77 & 2014.93 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" --- @@ -815,7 +815,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{l|l|rrrr}\n\\toprule\n\\multicolumn{2}{c}{} & open & high & low & close \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multirow{8}{*}{W02} & \\multicolumn{1}{l|}{min} & 2005.55 & 2029.61 & 1992.44 & 2002.61 \\\\ \n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{max} & 2063.45 & 2064.43 & 2038.33 & 2062.14 \\\\ \n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{avg} & 2035.24 & 2048.56 & 2016.85 & 2031.21 \\\\ \n\\cmidrule(l{-0.05em}r){2-6}\n & 16440 & 2054.44 & 2054.44 & 2017.34 & 2020.58 \\\\ \n & 16441 & 2022.15 & 2030.25 & 1992.44 & 2002.61 \\\\ \n & 16442 & 2005.55 & 2029.61 & 2005.55 & 2025.90 \\\\ \n & 16443 & 2030.61 & 2064.08 & 2030.61 & 2062.14 \\\\ \n & 16444 & 2063.45 & 2064.43 & 2038.33 & 2044.81 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multirow{8}{*}{W03} & 16447 & 2046.13 & 2049.30 & 2022.58 & 2028.26 \\\\ \n & 16448 & 2031.58 & 2056.93 & 2008.25 & 2023.03 \\\\ \n & 16449 & 2018.40 & 2018.40 & 1988.44 & 2011.27 \\\\ \n & 16450 & 2013.75 & 2021.35 & 1991.47 & 1992.67 \\\\ \n & 16451 & 1992.25 & 2020.46 & 1988.12 & 2019.42 \\\\ \n\\cmidrule(l{-0.05em}r){2-6}\n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{min} & 1992.25 & 2018.40 & 1988.12 & 1992.67 \\\\ \n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{max} & 2046.13 & 2056.93 & 2022.58 & 2028.26 \\\\ \n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{avg} & 2020.42 & 2033.29 & 1999.77 & 2014.93 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{l|l|rrrr}\n\\toprule\n\\multicolumn{2}{c}{} & open & high & low & close \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multirow{8}{*}{W02} & \\multicolumn{1}{l|}{min} & 2005.55 & 2029.61 & 1992.44 & 2002.61 \\\\ \n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{max} & 2063.45 & 2064.43 & 2038.33 & 2062.14 \\\\ \n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{avg} & 2035.24 & 2048.56 & 2016.85 & 2031.21 \\\\ \n\\cmidrule(l{-0.05em}r){2-6}\n & 16440 & 2054.44 & 2054.44 & 2017.34 & 2020.58 \\\\ \n & 16441 & 2022.15 & 2030.25 & 1992.44 & 2002.61 \\\\ \n & 16442 & 2005.55 & 2029.61 & 2005.55 & 2025.90 \\\\ \n & 16443 & 2030.61 & 2064.08 & 2030.61 & 2062.14 \\\\ \n & 16444 & 2063.45 & 2064.43 & 2038.33 & 2044.81 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multirow{8}{*}{W03} & 16447 & 2046.13 & 2049.30 & 2022.58 & 2028.26 \\\\ \n & 16448 & 2031.58 & 2056.93 & 2008.25 & 2023.03 \\\\ \n & 16449 & 2018.40 & 2018.40 & 1988.44 & 2011.27 \\\\ \n & 16450 & 2013.75 & 2021.35 & 1991.47 & 1992.67 \\\\ \n & 16451 & 1992.25 & 2020.46 & 1988.12 & 2019.42 \\\\ \n\\cmidrule(l{-0.05em}r){2-6}\n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{min} & 1992.25 & 2018.40 & 1988.12 & 1992.67 \\\\ \n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{max} & 2046.13 & 2056.93 & 2022.58 & 2028.26 \\\\ \n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{avg} & 2020.42 & 2033.29 & 1999.77 & 2014.93 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" # Grand summary rows can be added to the top of a table @@ -914,7 +914,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{l|rrrr}\n\\toprule\n & open & high & low & close \\\\ \n\\midrule\\addlinespace[2.5pt]\nmin & 1992.25 & 2018.40 & 1988.12 & 1992.67 \\\\ \nmax & 2063.45 & 2064.43 & 2038.33 & 2062.14 \\\\ \navg & 2027.83 & 2040.92 & 2008.31 & 2023.07 \\\\ \n\\midrule \n\\midrule \n\\multicolumn{5}{l}{W02} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16440 & 2054.44 & 2054.44 & 2017.34 & 2020.58 \\\\ \n16441 & 2022.15 & 2030.25 & 1992.44 & 2002.61 \\\\ \n16442 & 2005.55 & 2029.61 & 2005.55 & 2025.90 \\\\ \n16443 & 2030.61 & 2064.08 & 2030.61 & 2062.14 \\\\ \n16444 & 2063.45 & 2064.43 & 2038.33 & 2044.81 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W03} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16447 & 2046.13 & 2049.30 & 2022.58 & 2028.26 \\\\ \n16448 & 2031.58 & 2056.93 & 2008.25 & 2023.03 \\\\ \n16449 & 2018.40 & 2018.40 & 1988.44 & 2011.27 \\\\ \n16450 & 2013.75 & 2021.35 & 1991.47 & 1992.67 \\\\ \n16451 & 1992.25 & 2020.46 & 1988.12 & 2019.42 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{l|rrrr}\n\\toprule\n & open & high & low & close \\\\ \n\\midrule\\addlinespace[2.5pt]\nmin & 1992.25 & 2018.40 & 1988.12 & 1992.67 \\\\ \nmax & 2063.45 & 2064.43 & 2038.33 & 2062.14 \\\\ \navg & 2027.83 & 2040.92 & 2008.31 & 2023.07 \\\\ \n\\midrule \n\\midrule \n\\multicolumn{5}{l}{W02} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16440 & 2054.44 & 2054.44 & 2017.34 & 2020.58 \\\\ \n16441 & 2022.15 & 2030.25 & 1992.44 & 2002.61 \\\\ \n16442 & 2005.55 & 2029.61 & 2005.55 & 2025.90 \\\\ \n16443 & 2030.61 & 2064.08 & 2030.61 & 2062.14 \\\\ \n16444 & 2063.45 & 2064.43 & 2038.33 & 2044.81 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W03} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16447 & 2046.13 & 2049.30 & 2022.58 & 2028.26 \\\\ \n16448 & 2031.58 & 2056.93 & 2008.25 & 2023.03 \\\\ \n16449 & 2018.40 & 2018.40 & 1988.44 & 2011.27 \\\\ \n16450 & 2013.75 & 2021.35 & 1991.47 & 1992.67 \\\\ \n16451 & 1992.25 & 2020.46 & 1988.12 & 2019.42 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" --- @@ -1009,7 +1009,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{l|l|rrrr}\n\\toprule\n\\multicolumn{2}{c}{} & open & high & low & close \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{min} & 1992.25 & 2018.40 & 1988.12 & 1992.67 \\\\ \n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{max} & 2063.45 & 2064.43 & 2038.33 & 2062.14 \\\\ \n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{avg} & 2027.83 & 2040.92 & 2008.31 & 2023.07 \\\\ \n\\midrule \n\\midrule \n\\multirow{5}{*}{W02} & 16440 & 2054.44 & 2054.44 & 2017.34 & 2020.58 \\\\ \n & 16441 & 2022.15 & 2030.25 & 1992.44 & 2002.61 \\\\ \n & 16442 & 2005.55 & 2029.61 & 2005.55 & 2025.90 \\\\ \n & 16443 & 2030.61 & 2064.08 & 2030.61 & 2062.14 \\\\ \n & 16444 & 2063.45 & 2064.43 & 2038.33 & 2044.81 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multirow{5}{*}{W03} & 16447 & 2046.13 & 2049.30 & 2022.58 & 2028.26 \\\\ \n & 16448 & 2031.58 & 2056.93 & 2008.25 & 2023.03 \\\\ \n & 16449 & 2018.40 & 2018.40 & 1988.44 & 2011.27 \\\\ \n & 16450 & 2013.75 & 2021.35 & 1991.47 & 1992.67 \\\\ \n & 16451 & 1992.25 & 2020.46 & 1988.12 & 2019.42 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{l|l|rrrr}\n\\toprule\n\\multicolumn{2}{c}{} & open & high & low & close \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{min} & 1992.25 & 2018.40 & 1988.12 & 1992.67 \\\\ \n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{max} & 2063.45 & 2064.43 & 2038.33 & 2062.14 \\\\ \n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{avg} & 2027.83 & 2040.92 & 2008.31 & 2023.07 \\\\ \n\\midrule \n\\midrule \n\\multirow{5}{*}{W02} & 16440 & 2054.44 & 2054.44 & 2017.34 & 2020.58 \\\\ \n & 16441 & 2022.15 & 2030.25 & 1992.44 & 2002.61 \\\\ \n & 16442 & 2005.55 & 2029.61 & 2005.55 & 2025.90 \\\\ \n & 16443 & 2030.61 & 2064.08 & 2030.61 & 2062.14 \\\\ \n & 16444 & 2063.45 & 2064.43 & 2038.33 & 2044.81 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multirow{5}{*}{W03} & 16447 & 2046.13 & 2049.30 & 2022.58 & 2028.26 \\\\ \n & 16448 & 2031.58 & 2056.93 & 2008.25 & 2023.03 \\\\ \n & 16449 & 2018.40 & 2018.40 & 1988.44 & 2011.27 \\\\ \n & 16450 & 2013.75 & 2021.35 & 1991.47 & 1992.67 \\\\ \n & 16451 & 1992.25 & 2020.46 & 1988.12 & 2019.42 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" # Labels can be intrepreted from Markdown using `md()` @@ -1108,7 +1108,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{l|rrrr}\n\\toprule\n & open & high & low & close \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W02} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16440 & 2054.44 & 2054.44 & 2017.34 & 2020.58 \\\\ \n16441 & 2022.15 & 2030.25 & 1992.44 & 2002.61 \\\\ \n16442 & 2005.55 & 2029.61 & 2005.55 & 2025.90 \\\\ \n16443 & 2030.61 & 2064.08 & 2030.61 & 2062.14 \\\\ \n16444 & 2063.45 & 2064.43 & 2038.33 & 2044.81 \\\\ \n\\midrule \n\\textbf{Average} & 2035.23998 & 2048.56198 & 2016.8540 & 2031.2080 \\\\ \nSum & 10176.19990 & 10242.80990 & 10084.2699 & 10156.0400 \\\\ \n\\emph{S.D.} & 23.65756 & 17.47612 & 18.5372 & 22.9171 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W03} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16447 & 2046.13 & 2049.30 & 2022.58 & 2028.26 \\\\ \n16448 & 2031.58 & 2056.93 & 2008.25 & 2023.03 \\\\ \n16449 & 2018.40 & 2018.40 & 1988.44 & 2011.27 \\\\ \n16450 & 2013.75 & 2021.35 & 1991.47 & 1992.67 \\\\ \n16451 & 1992.25 & 2020.46 & 1988.12 & 2019.42 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{l|rrrr}\n\\toprule\n & open & high & low & close \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W02} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16440 & 2054.44 & 2054.44 & 2017.34 & 2020.58 \\\\ \n16441 & 2022.15 & 2030.25 & 1992.44 & 2002.61 \\\\ \n16442 & 2005.55 & 2029.61 & 2005.55 & 2025.90 \\\\ \n16443 & 2030.61 & 2064.08 & 2030.61 & 2062.14 \\\\ \n16444 & 2063.45 & 2064.43 & 2038.33 & 2044.81 \\\\ \n\\midrule \n\\textbf{Average} & 2035.23998 & 2048.56198 & 2016.8540 & 2031.2080 \\\\ \nSum & 10176.19990 & 10242.80990 & 10084.2699 & 10156.0400 \\\\ \n\\emph{S.D.} & 23.65756 & 17.47612 & 18.5372 & 22.9171 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W03} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16447 & 2046.13 & 2049.30 & 2022.58 & 2028.26 \\\\ \n16448 & 2031.58 & 2056.93 & 2008.25 & 2023.03 \\\\ \n16449 & 2018.40 & 2018.40 & 1988.44 & 2011.27 \\\\ \n16450 & 2013.75 & 2021.35 & 1991.47 & 1992.67 \\\\ \n16451 & 1992.25 & 2020.46 & 1988.12 & 2019.42 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" --- @@ -1501,7 +1501,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{l|rrrr}\n\\toprule\n & open & high & low & close \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W02} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16440 & 2054.44 & 2054.44 & 2017.34 & 2020.58 \\\\ \n16441 & 2022.15 & 2030.25 & 1992.44 & 2002.61 \\\\ \n16442 & 2005.55 & 2029.61 & 2005.55 & 2025.90 \\\\ \n16443 & 2030.61 & 2064.08 & 2030.61 & 2062.14 \\\\ \n16444 & 2063.45 & 2064.43 & 2038.33 & 2044.81 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W03} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16447 & 2046.13 & 2049.30 & 2022.58 & 2028.26 \\\\ \n16448 & 2031.58 & 2056.93 & 2008.25 & 2023.03 \\\\ \n16449 & 2018.40 & 2018.40 & 1988.44 & 2011.27 \\\\ \n16450 & 2013.75 & 2021.35 & 1991.47 & 1992.67 \\\\ \n16451 & 1992.25 & 2020.46 & 1988.12 & 2019.42 \\\\ \n\\midrule \n\\midrule \n\\textbf{Average} & 2027.83099 & 2040.92498 & 2008.31298 & 2023.06900 \\\\ \nSum & 20278.30990 & 20409.24980 & 20083.12980 & 20230.69000 \\\\ \n\\emph{S.D.} & 22.14929 & 18.70516 & 18.34602 & 19.82022 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{l|rrrr}\n\\toprule\n & open & high & low & close \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W02} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16440 & 2054.44 & 2054.44 & 2017.34 & 2020.58 \\\\ \n16441 & 2022.15 & 2030.25 & 1992.44 & 2002.61 \\\\ \n16442 & 2005.55 & 2029.61 & 2005.55 & 2025.90 \\\\ \n16443 & 2030.61 & 2064.08 & 2030.61 & 2062.14 \\\\ \n16444 & 2063.45 & 2064.43 & 2038.33 & 2044.81 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W03} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16447 & 2046.13 & 2049.30 & 2022.58 & 2028.26 \\\\ \n16448 & 2031.58 & 2056.93 & 2008.25 & 2023.03 \\\\ \n16449 & 2018.40 & 2018.40 & 1988.44 & 2011.27 \\\\ \n16450 & 2013.75 & 2021.35 & 1991.47 & 1992.67 \\\\ \n16451 & 1992.25 & 2020.46 & 1988.12 & 2019.42 \\\\ \n\\midrule \n\\midrule \n\\textbf{Average} & 2027.83099 & 2040.92498 & 2008.31298 & 2023.06900 \\\\ \nSum & 20278.30990 & 20409.24980 & 20083.12980 & 20230.69000 \\\\ \n\\emph{S.D.} & 22.14929 & 18.70516 & 18.34602 & 19.82022 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" --- @@ -1909,7 +1909,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{l|rrrr}\n\\toprule\n & open & high & low & close \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W02} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16440 & 2054.44 & 2054.44 & 2017.34 & 2020.58 \\\\ \n16441 & 2022.15 & 2030.25 & 1992.44 & 2002.61 \\\\ \n16442 & 2005.55 & 2029.61 & 2005.55 & 2025.90 \\\\ \n16443 & 2030.61 & 2064.08 & 2030.61 & 2062.14 \\\\ \n16444 & 2063.45 & 2064.43 & 2038.33 & 2044.81 \\\\ \n\\midrule \naverage & 2,035.240 & 2,048.562 & 2,016.854 & 2,031.208 \\\\ \ntotal & 10,176.200 & 10,242.810 & 10,084.270 & 10,156.040 \\\\ \nstd dev & 23.658 & 17.476 & 18.537 & 22.917 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W03} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16447 & 2046.13 & 2049.30 & 2022.58 & 2028.26 \\\\ \n16448 & 2031.58 & 2056.93 & 2008.25 & 2023.03 \\\\ \n16449 & 2018.40 & 2018.40 & 1988.44 & 2011.27 \\\\ \n16450 & 2013.75 & 2021.35 & 1991.47 & 1992.67 \\\\ \n16451 & 1992.25 & 2020.46 & 1988.12 & 2019.42 \\\\ \n\\midrule \naverage & 2020.42200 & 2033.28798 & 1999.77198 & 2014.9300 \\\\ \ntotal & 10102.11000 & 10166.43990 & 9998.85990 & 10074.6500 \\\\ \nstd dev & 20.17218 & 18.33064 & 15.20847 & 13.8957 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{l|rrrr}\n\\toprule\n & open & high & low & close \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W02} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16440 & 2054.44 & 2054.44 & 2017.34 & 2020.58 \\\\ \n16441 & 2022.15 & 2030.25 & 1992.44 & 2002.61 \\\\ \n16442 & 2005.55 & 2029.61 & 2005.55 & 2025.90 \\\\ \n16443 & 2030.61 & 2064.08 & 2030.61 & 2062.14 \\\\ \n16444 & 2063.45 & 2064.43 & 2038.33 & 2044.81 \\\\ \n\\midrule \naverage & 2,035.240 & 2,048.562 & 2,016.854 & 2,031.208 \\\\ \ntotal & 10,176.200 & 10,242.810 & 10,084.270 & 10,156.040 \\\\ \nstd dev & 23.658 & 17.476 & 18.537 & 22.917 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W03} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16447 & 2046.13 & 2049.30 & 2022.58 & 2028.26 \\\\ \n16448 & 2031.58 & 2056.93 & 2008.25 & 2023.03 \\\\ \n16449 & 2018.40 & 2018.40 & 1988.44 & 2011.27 \\\\ \n16450 & 2013.75 & 2021.35 & 1991.47 & 1992.67 \\\\ \n16451 & 1992.25 & 2020.46 & 1988.12 & 2019.42 \\\\ \n\\midrule \naverage & 2020.42200 & 2033.28798 & 1999.77198 & 2014.9300 \\\\ \ntotal & 10102.11000 & 10166.43990 & 9998.85990 & 10074.6500 \\\\ \nstd dev & 20.17218 & 18.33064 & 15.20847 & 13.8957 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" --- @@ -2374,7 +2374,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{l|rrrr}\n\\toprule\n & open & high & low & close \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W02} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16440 & 2054.44 & 2054.44 & 2017.34 & 2020.58 \\\\ \n16441 & 2022.15 & 2030.25 & 1992.44 & 2002.61 \\\\ \n16442 & 2005.55 & 2029.61 & 2005.55 & 2025.90 \\\\ \n16443 & 2030.61 & 2064.08 & 2030.61 & 2062.14 \\\\ \n16444 & 2063.45 & 2064.43 & 2038.33 & 2044.81 \\\\ \n\\midrule \naverage & 2,035.240 & 2,048.562 & 2,016.854 & 2,031.208 \\\\ \ntotal & 10,176.200 & 10,242.810 & 10,084.270 & 10,156.040 \\\\ \nstd dev & 23.658 & 17.476 & 18.537 & 22.917 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W03} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16447 & 2046.13 & 2049.30 & 2022.58 & 2028.26 \\\\ \n16448 & 2031.58 & 2056.93 & 2008.25 & 2023.03 \\\\ \n16449 & 2018.40 & 2018.40 & 1988.44 & 2011.27 \\\\ \n16450 & 2013.75 & 2021.35 & 1991.47 & 1992.67 \\\\ \n16451 & 1992.25 & 2020.46 & 1988.12 & 2019.42 \\\\ \n\\midrule \naverage & \\$2,020.42 & \\$2,033.29 & \\$1,999.77 & \\$2,014.93 \\\\ \ntotal & \\$10,102.11 & \\$10,166.44 & \\$9,998.86 & \\$10,074.65 \\\\ \nstd dev & \\$20.17 & \\$18.33 & \\$15.21 & \\$13.90 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{l|rrrr}\n\\toprule\n & open & high & low & close \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W02} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16440 & 2054.44 & 2054.44 & 2017.34 & 2020.58 \\\\ \n16441 & 2022.15 & 2030.25 & 1992.44 & 2002.61 \\\\ \n16442 & 2005.55 & 2029.61 & 2005.55 & 2025.90 \\\\ \n16443 & 2030.61 & 2064.08 & 2030.61 & 2062.14 \\\\ \n16444 & 2063.45 & 2064.43 & 2038.33 & 2044.81 \\\\ \n\\midrule \naverage & 2,035.240 & 2,048.562 & 2,016.854 & 2,031.208 \\\\ \ntotal & 10,176.200 & 10,242.810 & 10,084.270 & 10,156.040 \\\\ \nstd dev & 23.658 & 17.476 & 18.537 & 22.917 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W03} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16447 & 2046.13 & 2049.30 & 2022.58 & 2028.26 \\\\ \n16448 & 2031.58 & 2056.93 & 2008.25 & 2023.03 \\\\ \n16449 & 2018.40 & 2018.40 & 1988.44 & 2011.27 \\\\ \n16450 & 2013.75 & 2021.35 & 1991.47 & 1992.67 \\\\ \n16451 & 1992.25 & 2020.46 & 1988.12 & 2019.42 \\\\ \n\\midrule \naverage & \\$2,020.42 & \\$2,033.29 & \\$1,999.77 & \\$2,014.93 \\\\ \ntotal & \\$10,102.11 & \\$10,166.44 & \\$9,998.86 & \\$10,074.65 \\\\ \nstd dev & \\$20.17 & \\$18.33 & \\$15.21 & \\$13.90 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" --- @@ -2839,7 +2839,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{l|rrrr}\n\\toprule\n & open & high & low & close \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W02} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16440 & 2054.44 & 2054.44 & 2017.34 & 2020.58 \\\\ \n16441 & 2022.15 & 2030.25 & 1992.44 & 2002.61 \\\\ \n16442 & 2005.55 & 2029.61 & 2005.55 & 2025.90 \\\\ \n16443 & 2030.61 & 2064.08 & 2030.61 & 2062.14 \\\\ \n16444 & 2063.45 & 2064.43 & 2038.33 & 2044.81 \\\\ \n\\midrule \naverage & \\$2,035.24 & \\$2,048.56 & \\$2,016.85 & \\$2,031.21 \\\\ \ntotal & \\$10,176.20 & \\$10,242.81 & \\$10,084.27 & \\$10,156.04 \\\\ \nstd dev & \\$23.66 & \\$17.48 & \\$18.54 & \\$22.92 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W03} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16447 & 2046.13 & 2049.30 & 2022.58 & 2028.26 \\\\ \n16448 & 2031.58 & 2056.93 & 2008.25 & 2023.03 \\\\ \n16449 & 2018.40 & 2018.40 & 1988.44 & 2011.27 \\\\ \n16450 & 2013.75 & 2021.35 & 1991.47 & 1992.67 \\\\ \n16451 & 1992.25 & 2020.46 & 1988.12 & 2019.42 \\\\ \n\\midrule \naverage & \\$2,020.42 & \\$2,033.29 & \\$1,999.77 & \\$2,014.93 \\\\ \ntotal & \\$10,102.11 & \\$10,166.44 & \\$9,998.86 & \\$10,074.65 \\\\ \nstd dev & \\$20.17 & \\$18.33 & \\$15.21 & \\$13.90 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{l|rrrr}\n\\toprule\n & open & high & low & close \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W02} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16440 & 2054.44 & 2054.44 & 2017.34 & 2020.58 \\\\ \n16441 & 2022.15 & 2030.25 & 1992.44 & 2002.61 \\\\ \n16442 & 2005.55 & 2029.61 & 2005.55 & 2025.90 \\\\ \n16443 & 2030.61 & 2064.08 & 2030.61 & 2062.14 \\\\ \n16444 & 2063.45 & 2064.43 & 2038.33 & 2044.81 \\\\ \n\\midrule \naverage & \\$2,035.24 & \\$2,048.56 & \\$2,016.85 & \\$2,031.21 \\\\ \ntotal & \\$10,176.20 & \\$10,242.81 & \\$10,084.27 & \\$10,156.04 \\\\ \nstd dev & \\$23.66 & \\$17.48 & \\$18.54 & \\$22.92 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W03} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16447 & 2046.13 & 2049.30 & 2022.58 & 2028.26 \\\\ \n16448 & 2031.58 & 2056.93 & 2008.25 & 2023.03 \\\\ \n16449 & 2018.40 & 2018.40 & 1988.44 & 2011.27 \\\\ \n16450 & 2013.75 & 2021.35 & 1991.47 & 1992.67 \\\\ \n16451 & 1992.25 & 2020.46 & 1988.12 & 2019.42 \\\\ \n\\midrule \naverage & \\$2,020.42 & \\$2,033.29 & \\$1,999.77 & \\$2,014.93 \\\\ \ntotal & \\$10,102.11 & \\$10,166.44 & \\$9,998.86 & \\$10,074.65 \\\\ \nstd dev & \\$20.17 & \\$18.33 & \\$15.21 & \\$13.90 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" --- @@ -3289,7 +3289,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{l|rrrr}\n\\toprule\n & open & high & low & close \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W02} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16440 & 2054.44 & 2054.44 & 2017.34 & 2020.58 \\\\ \n16441 & 2022.15 & 2030.25 & 1992.44 & 2002.61 \\\\ \n16442 & 2005.55 & 2029.61 & 2005.55 & 2025.90 \\\\ \n16443 & 2030.61 & 2064.08 & 2030.61 & 2062.14 \\\\ \n16444 & 2063.45 & 2064.43 & 2038.33 & 2044.81 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W03} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16447 & 2046.13 & 2049.30 & 2022.58 & 2028.26 \\\\ \n16448 & 2031.58 & 2056.93 & 2008.25 & 2023.03 \\\\ \n16449 & 2018.40 & 2018.40 & 1988.44 & 2011.27 \\\\ \n16450 & 2013.75 & 2021.35 & 1991.47 & 1992.67 \\\\ \n16451 & 1992.25 & 2020.46 & 1988.12 & 2019.42 \\\\ \n\\midrule \n\\midrule \naverage & 2,027.831 & 2,040.925 & 2,008.313 & 2,023.069 \\\\ \ntotal & 20,278.310 & 20,409.250 & 20,083.130 & 20,230.690 \\\\ \nstd dev & 22.149 & 18.705 & 18.346 & 19.820 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{l|rrrr}\n\\toprule\n & open & high & low & close \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W02} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16440 & 2054.44 & 2054.44 & 2017.34 & 2020.58 \\\\ \n16441 & 2022.15 & 2030.25 & 1992.44 & 2002.61 \\\\ \n16442 & 2005.55 & 2029.61 & 2005.55 & 2025.90 \\\\ \n16443 & 2030.61 & 2064.08 & 2030.61 & 2062.14 \\\\ \n16444 & 2063.45 & 2064.43 & 2038.33 & 2044.81 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W03} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16447 & 2046.13 & 2049.30 & 2022.58 & 2028.26 \\\\ \n16448 & 2031.58 & 2056.93 & 2008.25 & 2023.03 \\\\ \n16449 & 2018.40 & 2018.40 & 1988.44 & 2011.27 \\\\ \n16450 & 2013.75 & 2021.35 & 1991.47 & 1992.67 \\\\ \n16451 & 1992.25 & 2020.46 & 1988.12 & 2019.42 \\\\ \n\\midrule \n\\midrule \naverage & 2,027.831 & 2,040.925 & 2,008.313 & 2,023.069 \\\\ \ntotal & 20,278.310 & 20,409.250 & 20,083.130 & 20,230.690 \\\\ \nstd dev & 22.149 & 18.705 & 18.346 & 19.820 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" --- @@ -3697,7 +3697,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{l|rrrr}\n\\toprule\n & open & high & low & close \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W02} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16440 & 2054.44 & 2054.44 & 2017.34 & 2020.58 \\\\ \n16441 & 2022.15 & 2030.25 & 1992.44 & 2002.61 \\\\ \n16442 & 2005.55 & 2029.61 & 2005.55 & 2025.90 \\\\ \n16443 & 2030.61 & 2064.08 & 2030.61 & 2062.14 \\\\ \n16444 & 2063.45 & 2064.43 & 2038.33 & 2044.81 \\\\ \n\\midrule \naverage & <2,035.24> & <2,048.56> & 2016.85398 & 2031.2080 \\\\ \ntotal & <10,176.20> & <10,242.81> & 10084.26990 & 10156.0400 \\\\ \nstd dev & <23.66> & <17.48> & 18.53720 & 22.9171 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W03} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16447 & 2046.13 & 2049.30 & 2022.58 & 2028.26 \\\\ \n16448 & 2031.58 & 2056.93 & 2008.25 & 2023.03 \\\\ \n16449 & 2018.40 & 2018.40 & 1988.44 & 2011.27 \\\\ \n16450 & 2013.75 & 2021.35 & 1991.47 & 1992.67 \\\\ \n16451 & 1992.25 & 2020.46 & 1988.12 & 2019.42 \\\\ \n\\midrule \naverage & <2,020.42> & <2,033.29> & 1999.77198 & 2014.9300 \\\\ \ntotal & <10,102.11> & <10,166.44> & 9998.85990 & 10074.6500 \\\\ \nstd dev & <20.17> & <18.33> & 15.20847 & 13.8957 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{l|rrrr}\n\\toprule\n & open & high & low & close \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W02} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16440 & 2054.44 & 2054.44 & 2017.34 & 2020.58 \\\\ \n16441 & 2022.15 & 2030.25 & 1992.44 & 2002.61 \\\\ \n16442 & 2005.55 & 2029.61 & 2005.55 & 2025.90 \\\\ \n16443 & 2030.61 & 2064.08 & 2030.61 & 2062.14 \\\\ \n16444 & 2063.45 & 2064.43 & 2038.33 & 2044.81 \\\\ \n\\midrule \naverage & <2,035.24> & <2,048.56> & 2016.85398 & 2031.2080 \\\\ \ntotal & <10,176.20> & <10,242.81> & 10084.26990 & 10156.0400 \\\\ \nstd dev & <23.66> & <17.48> & 18.53720 & 22.9171 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W03} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16447 & 2046.13 & 2049.30 & 2022.58 & 2028.26 \\\\ \n16448 & 2031.58 & 2056.93 & 2008.25 & 2023.03 \\\\ \n16449 & 2018.40 & 2018.40 & 1988.44 & 2011.27 \\\\ \n16450 & 2013.75 & 2021.35 & 1991.47 & 1992.67 \\\\ \n16451 & 1992.25 & 2020.46 & 1988.12 & 2019.42 \\\\ \n\\midrule \naverage & <2,020.42> & <2,033.29> & 1999.77198 & 2014.9300 \\\\ \ntotal & <10,102.11> & <10,166.44> & 9998.85990 & 10074.6500 \\\\ \nstd dev & <20.17> & <18.33> & 15.20847 & 13.8957 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" --- @@ -4162,7 +4162,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{l|rrrr}\n\\toprule\n & open & high & low & close \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W02} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16440 & 2054.44 & 2054.44 & 2017.34 & 2020.58 \\\\ \n16441 & 2022.15 & 2030.25 & 1992.44 & 2002.61 \\\\ \n16442 & 2005.55 & 2029.61 & 2005.55 & 2025.90 \\\\ \n16443 & 2030.61 & 2064.08 & 2030.61 & 2062.14 \\\\ \n16444 & 2063.45 & 2064.43 & 2038.33 & 2044.81 \\\\ \n\\midrule \naverage & <2,035.24> & <2,048.56> & [2,016.85] & [2,031.21] \\\\ \ntotal & <10,176.20> & <10,242.81> & [10,084.27] & [10,156.04] \\\\ \nstd dev & <23.66> & <17.48> & [18.54] & [22.92] \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W03} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16447 & 2046.13 & 2049.30 & 2022.58 & 2028.26 \\\\ \n16448 & 2031.58 & 2056.93 & 2008.25 & 2023.03 \\\\ \n16449 & 2018.40 & 2018.40 & 1988.44 & 2011.27 \\\\ \n16450 & 2013.75 & 2021.35 & 1991.47 & 1992.67 \\\\ \n16451 & 1992.25 & 2020.46 & 1988.12 & 2019.42 \\\\ \n\\midrule \naverage & <2,020.42> & <2,033.29> & [1,999.77] & [2,014.93] \\\\ \ntotal & <10,102.11> & <10,166.44> & [9,998.86] & [10,074.65] \\\\ \nstd dev & <20.17> & <18.33> & [15.21] & [13.90] \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{l|rrrr}\n\\toprule\n & open & high & low & close \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W02} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16440 & 2054.44 & 2054.44 & 2017.34 & 2020.58 \\\\ \n16441 & 2022.15 & 2030.25 & 1992.44 & 2002.61 \\\\ \n16442 & 2005.55 & 2029.61 & 2005.55 & 2025.90 \\\\ \n16443 & 2030.61 & 2064.08 & 2030.61 & 2062.14 \\\\ \n16444 & 2063.45 & 2064.43 & 2038.33 & 2044.81 \\\\ \n\\midrule \naverage & <2,035.24> & <2,048.56> & [2,016.85] & [2,031.21] \\\\ \ntotal & <10,176.20> & <10,242.81> & [10,084.27] & [10,156.04] \\\\ \nstd dev & <23.66> & <17.48> & [18.54] & [22.92] \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W03} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16447 & 2046.13 & 2049.30 & 2022.58 & 2028.26 \\\\ \n16448 & 2031.58 & 2056.93 & 2008.25 & 2023.03 \\\\ \n16449 & 2018.40 & 2018.40 & 1988.44 & 2011.27 \\\\ \n16450 & 2013.75 & 2021.35 & 1991.47 & 1992.67 \\\\ \n16451 & 1992.25 & 2020.46 & 1988.12 & 2019.42 \\\\ \n\\midrule \naverage & <2,020.42> & <2,033.29> & [1,999.77] & [2,014.93] \\\\ \ntotal & <10,102.11> & <10,166.44> & [9,998.86] & [10,074.65] \\\\ \nstd dev & <20.17> & <18.33> & [15.21] & [13.90] \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" --- @@ -4627,7 +4627,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{l|rrrr}\n\\toprule\n & open & high & low & close \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W02} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16440 & 2054.44 & 2054.44 & 2017.34 & 2020.58 \\\\ \n16441 & 2022.15 & 2030.25 & 1992.44 & 2002.61 \\\\ \n16442 & 2005.55 & 2029.61 & 2005.55 & 2025.90 \\\\ \n16443 & 2030.61 & 2064.08 & 2030.61 & 2062.14 \\\\ \n16444 & 2063.45 & 2064.43 & 2038.33 & 2044.81 \\\\ \n\\midrule \naverage & <2,035.24> & <2,048.56> & 2016.85398 & 2031.2080 \\\\ \ntotal & 10176.19990 & 10242.80990 & [10,084.27] & [10,156.04] \\\\ \nstd dev & 23.65756 & 17.47612 & 18.53720 & 22.9171 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W03} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16447 & 2046.13 & 2049.30 & 2022.58 & 2028.26 \\\\ \n16448 & 2031.58 & 2056.93 & 2008.25 & 2023.03 \\\\ \n16449 & 2018.40 & 2018.40 & 1988.44 & 2011.27 \\\\ \n16450 & 2013.75 & 2021.35 & 1991.47 & 1992.67 \\\\ \n16451 & 1992.25 & 2020.46 & 1988.12 & 2019.42 \\\\ \n\\midrule \naverage & <2,020.42> & <2,033.29> & 1999.77198 & 2014.9300 \\\\ \ntotal & 10102.11000 & 10166.43990 & [9,998.86] & [10,074.65] \\\\ \nstd dev & 20.17218 & 18.33064 & 15.20847 & 13.8957 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{l|rrrr}\n\\toprule\n & open & high & low & close \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W02} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16440 & 2054.44 & 2054.44 & 2017.34 & 2020.58 \\\\ \n16441 & 2022.15 & 2030.25 & 1992.44 & 2002.61 \\\\ \n16442 & 2005.55 & 2029.61 & 2005.55 & 2025.90 \\\\ \n16443 & 2030.61 & 2064.08 & 2030.61 & 2062.14 \\\\ \n16444 & 2063.45 & 2064.43 & 2038.33 & 2044.81 \\\\ \n\\midrule \naverage & <2,035.24> & <2,048.56> & 2016.85398 & 2031.2080 \\\\ \ntotal & 10176.19990 & 10242.80990 & [10,084.27] & [10,156.04] \\\\ \nstd dev & 23.65756 & 17.47612 & 18.53720 & 22.9171 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W03} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16447 & 2046.13 & 2049.30 & 2022.58 & 2028.26 \\\\ \n16448 & 2031.58 & 2056.93 & 2008.25 & 2023.03 \\\\ \n16449 & 2018.40 & 2018.40 & 1988.44 & 2011.27 \\\\ \n16450 & 2013.75 & 2021.35 & 1991.47 & 1992.67 \\\\ \n16451 & 1992.25 & 2020.46 & 1988.12 & 2019.42 \\\\ \n\\midrule \naverage & <2,020.42> & <2,033.29> & 1999.77198 & 2014.9300 \\\\ \ntotal & 10102.11000 & 10166.43990 & [9,998.86] & [10,074.65] \\\\ \nstd dev & 20.17218 & 18.33064 & 15.20847 & 13.8957 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" --- @@ -5092,7 +5092,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{l|rrrr}\n\\toprule\n & open & high & low & close \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W02} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16440 & 2054.44 & 2054.44 & 2017.34 & 2020.58 \\\\ \n16441 & 2022.15 & 2030.25 & 1992.44 & 2002.61 \\\\ \n16442 & 2005.55 & 2029.61 & 2005.55 & 2025.90 \\\\ \n16443 & 2030.61 & 2064.08 & 2030.61 & 2062.14 \\\\ \n16444 & 2063.45 & 2064.43 & 2038.33 & 2044.81 \\\\ \n\\midrule \naverage & 2035.23998 & 2048.56198 & 2016.85398 & 2031.2080 \\\\ \ntotal & 10176.19990 & 10242.80990 & 10084.26990 & 10156.0400 \\\\ \nstd dev & 23.65756 & 17.47612 & 18.53720 & 22.9171 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W03} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16447 & 2046.13 & 2049.30 & 2022.58 & 2028.26 \\\\ \n16448 & 2031.58 & 2056.93 & 2008.25 & 2023.03 \\\\ \n16449 & 2018.40 & 2018.40 & 1988.44 & 2011.27 \\\\ \n16450 & 2013.75 & 2021.35 & 1991.47 & 1992.67 \\\\ \n16451 & 1992.25 & 2020.46 & 1988.12 & 2019.42 \\\\ \n\\midrule \naverage & <2,020.42> & 2033.28798 & 1999.77198 & 2014.9300 \\\\ \ntotal & 10102.11000 & 10166.43990 & 9998.85990 & 10074.6500 \\\\ \nstd dev & 20.17218 & 18.33064 & 15.20847 & 13.8957 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{l|rrrr}\n\\toprule\n & open & high & low & close \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W02} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16440 & 2054.44 & 2054.44 & 2017.34 & 2020.58 \\\\ \n16441 & 2022.15 & 2030.25 & 1992.44 & 2002.61 \\\\ \n16442 & 2005.55 & 2029.61 & 2005.55 & 2025.90 \\\\ \n16443 & 2030.61 & 2064.08 & 2030.61 & 2062.14 \\\\ \n16444 & 2063.45 & 2064.43 & 2038.33 & 2044.81 \\\\ \n\\midrule \naverage & 2035.23998 & 2048.56198 & 2016.85398 & 2031.2080 \\\\ \ntotal & 10176.19990 & 10242.80990 & 10084.26990 & 10156.0400 \\\\ \nstd dev & 23.65756 & 17.47612 & 18.53720 & 22.9171 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W03} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16447 & 2046.13 & 2049.30 & 2022.58 & 2028.26 \\\\ \n16448 & 2031.58 & 2056.93 & 2008.25 & 2023.03 \\\\ \n16449 & 2018.40 & 2018.40 & 1988.44 & 2011.27 \\\\ \n16450 & 2013.75 & 2021.35 & 1991.47 & 1992.67 \\\\ \n16451 & 1992.25 & 2020.46 & 1988.12 & 2019.42 \\\\ \n\\midrule \naverage & <2,020.42> & 2033.28798 & 1999.77198 & 2014.9300 \\\\ \ntotal & 10102.11000 & 10166.43990 & 9998.85990 & 10074.6500 \\\\ \nstd dev & 20.17218 & 18.33064 & 15.20847 & 13.8957 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" --- @@ -5557,7 +5557,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{l|rrrr}\n\\toprule\n & open & high & low & close \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W02} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16440 & 2054.44 & 2054.44 & 2017.34 & 2020.58 \\\\ \n16441 & 2022.15 & 2030.25 & 1992.44 & 2002.61 \\\\ \n16442 & 2005.55 & 2029.61 & 2005.55 & 2025.90 \\\\ \n16443 & 2030.61 & 2064.08 & 2030.61 & 2062.14 \\\\ \n16444 & 2063.45 & 2064.43 & 2038.33 & 2044.81 \\\\ \n\\midrule \naverage & 2035.23998 & 2048.56198 & 2016.85398 & 2031.2080 \\\\ \ntotal & 10176.19990 & 10242.80990 & 10084.26990 & 10156.0400 \\\\ \nstd dev & 23.65756 & 17.47612 & 18.53720 & 22.9171 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W03} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16447 & 2046.13 & 2049.30 & 2022.58 & 2028.26 \\\\ \n16448 & 2031.58 & 2056.93 & 2008.25 & 2023.03 \\\\ \n16449 & 2018.40 & 2018.40 & 1988.44 & 2011.27 \\\\ \n16450 & 2013.75 & 2021.35 & 1991.47 & 1992.67 \\\\ \n16451 & 1992.25 & 2020.46 & 1988.12 & 2019.42 \\\\ \n\\midrule \naverage & <2,020.42> & 2033.28798 & 1999.77198 & 2014.9300 \\\\ \ntotal & <10,102.11> & 10166.43990 & 9998.85990 & 10074.6500 \\\\ \nstd dev & 20.17218 & 18.33064 & 15.20847 & 13.8957 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{l|rrrr}\n\\toprule\n & open & high & low & close \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W02} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16440 & 2054.44 & 2054.44 & 2017.34 & 2020.58 \\\\ \n16441 & 2022.15 & 2030.25 & 1992.44 & 2002.61 \\\\ \n16442 & 2005.55 & 2029.61 & 2005.55 & 2025.90 \\\\ \n16443 & 2030.61 & 2064.08 & 2030.61 & 2062.14 \\\\ \n16444 & 2063.45 & 2064.43 & 2038.33 & 2044.81 \\\\ \n\\midrule \naverage & 2035.23998 & 2048.56198 & 2016.85398 & 2031.2080 \\\\ \ntotal & 10176.19990 & 10242.80990 & 10084.26990 & 10156.0400 \\\\ \nstd dev & 23.65756 & 17.47612 & 18.53720 & 22.9171 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W03} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16447 & 2046.13 & 2049.30 & 2022.58 & 2028.26 \\\\ \n16448 & 2031.58 & 2056.93 & 2008.25 & 2023.03 \\\\ \n16449 & 2018.40 & 2018.40 & 1988.44 & 2011.27 \\\\ \n16450 & 2013.75 & 2021.35 & 1991.47 & 1992.67 \\\\ \n16451 & 1992.25 & 2020.46 & 1988.12 & 2019.42 \\\\ \n\\midrule \naverage & <2,020.42> & 2033.28798 & 1999.77198 & 2014.9300 \\\\ \ntotal & <10,102.11> & 10166.43990 & 9998.85990 & 10074.6500 \\\\ \nstd dev & 20.17218 & 18.33064 & 15.20847 & 13.8957 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" --- @@ -6022,7 +6022,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{l|rrrr}\n\\toprule\n & open & high & low & close \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W02} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16440 & 2054.44 & 2054.44 & 2017.34 & 2020.58 \\\\ \n16441 & 2022.15 & 2030.25 & 1992.44 & 2002.61 \\\\ \n16442 & 2005.55 & 2029.61 & 2005.55 & 2025.90 \\\\ \n16443 & 2030.61 & 2064.08 & 2030.61 & 2062.14 \\\\ \n16444 & 2063.45 & 2064.43 & 2038.33 & 2044.81 \\\\ \n\\midrule \naverage & 2035.23998 & 2048.56198 & 2016.85398 & 2031.2080 \\\\ \ntotal & 10176.19990 & 10242.80990 & 10084.26990 & 10156.0400 \\\\ \nstd dev & 23.65756 & 17.47612 & 18.53720 & 22.9171 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W03} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16447 & 2046.13 & 2049.30 & 2022.58 & 2028.26 \\\\ \n16448 & 2031.58 & 2056.93 & 2008.25 & 2023.03 \\\\ \n16449 & 2018.40 & 2018.40 & 1988.44 & 2011.27 \\\\ \n16450 & 2013.75 & 2021.35 & 1991.47 & 1992.67 \\\\ \n16451 & 1992.25 & 2020.46 & 1988.12 & 2019.42 \\\\ \n\\midrule \naverage & <2,020.42> & 2033.28798 & 1999.77198 & 2014.9300 \\\\ \ntotal & <10,102.11> & 10166.43990 & 9998.85990 & 10074.6500 \\\\ \nstd dev & <20.17> & 18.33064 & 15.20847 & 13.8957 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{l|rrrr}\n\\toprule\n & open & high & low & close \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W02} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16440 & 2054.44 & 2054.44 & 2017.34 & 2020.58 \\\\ \n16441 & 2022.15 & 2030.25 & 1992.44 & 2002.61 \\\\ \n16442 & 2005.55 & 2029.61 & 2005.55 & 2025.90 \\\\ \n16443 & 2030.61 & 2064.08 & 2030.61 & 2062.14 \\\\ \n16444 & 2063.45 & 2064.43 & 2038.33 & 2044.81 \\\\ \n\\midrule \naverage & 2035.23998 & 2048.56198 & 2016.85398 & 2031.2080 \\\\ \ntotal & 10176.19990 & 10242.80990 & 10084.26990 & 10156.0400 \\\\ \nstd dev & 23.65756 & 17.47612 & 18.53720 & 22.9171 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W03} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16447 & 2046.13 & 2049.30 & 2022.58 & 2028.26 \\\\ \n16448 & 2031.58 & 2056.93 & 2008.25 & 2023.03 \\\\ \n16449 & 2018.40 & 2018.40 & 1988.44 & 2011.27 \\\\ \n16450 & 2013.75 & 2021.35 & 1991.47 & 1992.67 \\\\ \n16451 & 1992.25 & 2020.46 & 1988.12 & 2019.42 \\\\ \n\\midrule \naverage & <2,020.42> & 2033.28798 & 1999.77198 & 2014.9300 \\\\ \ntotal & <10,102.11> & 10166.43990 & 9998.85990 & 10074.6500 \\\\ \nstd dev & <20.17> & 18.33064 & 15.20847 & 13.8957 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" --- @@ -6487,7 +6487,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{l|rrrr}\n\\toprule\n & open & high & low & close \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W02} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16440 & 2054.44 & 2054.44 & 2017.34 & 2020.58 \\\\ \n16441 & 2022.15 & 2030.25 & 1992.44 & 2002.61 \\\\ \n16442 & 2005.55 & 2029.61 & 2005.55 & 2025.90 \\\\ \n16443 & 2030.61 & 2064.08 & 2030.61 & 2062.14 \\\\ \n16444 & 2063.45 & 2064.43 & 2038.33 & 2044.81 \\\\ \n\\midrule \naverage & 2035.23998 & 2048.56198 & 2016.85398 & 2031.2080 \\\\ \ntotal & 10176.19990 & 10242.80990 & 10084.26990 & 10156.0400 \\\\ \nstd dev & 23.65756 & 17.47612 & 18.53720 & 22.9171 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W03} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16447 & 2046.13 & 2049.30 & 2022.58 & 2028.26 \\\\ \n16448 & 2031.58 & 2056.93 & 2008.25 & 2023.03 \\\\ \n16449 & 2018.40 & 2018.40 & 1988.44 & 2011.27 \\\\ \n16450 & 2013.75 & 2021.35 & 1991.47 & 1992.67 \\\\ \n16451 & 1992.25 & 2020.46 & 1988.12 & 2019.42 \\\\ \n\\midrule \naverage & <2,020.42> & 2033.28798 & 1999.77198 & <2,014.93> \\\\ \ntotal & <10,102.11> & 10166.43990 & 9998.85990 & <10,074.65> \\\\ \nstd dev & <20.17> & 18.33064 & 15.20847 & <13.90> \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{l|rrrr}\n\\toprule\n & open & high & low & close \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W02} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16440 & 2054.44 & 2054.44 & 2017.34 & 2020.58 \\\\ \n16441 & 2022.15 & 2030.25 & 1992.44 & 2002.61 \\\\ \n16442 & 2005.55 & 2029.61 & 2005.55 & 2025.90 \\\\ \n16443 & 2030.61 & 2064.08 & 2030.61 & 2062.14 \\\\ \n16444 & 2063.45 & 2064.43 & 2038.33 & 2044.81 \\\\ \n\\midrule \naverage & 2035.23998 & 2048.56198 & 2016.85398 & 2031.2080 \\\\ \ntotal & 10176.19990 & 10242.80990 & 10084.26990 & 10156.0400 \\\\ \nstd dev & 23.65756 & 17.47612 & 18.53720 & 22.9171 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{5}{l}{W03} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n16447 & 2046.13 & 2049.30 & 2022.58 & 2028.26 \\\\ \n16448 & 2031.58 & 2056.93 & 2008.25 & 2023.03 \\\\ \n16449 & 2018.40 & 2018.40 & 1988.44 & 2011.27 \\\\ \n16450 & 2013.75 & 2021.35 & 1991.47 & 1992.67 \\\\ \n16451 & 1992.25 & 2020.46 & 1988.12 & 2019.42 \\\\ \n\\midrule \naverage & <2,020.42> & 2033.28798 & 1999.77198 & <2,014.93> \\\\ \ntotal & <10,102.11> & 10166.43990 & 9998.85990 & <10,074.65> \\\\ \nstd dev & <20.17> & 18.33064 & 15.20847 & <13.90> \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" --- @@ -6969,7 +6969,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{l|rlcrrrrl}\n\\toprule\n & num & char & fctr & date & time & datetime & currency & group \\\\ \n\\midrule\\addlinespace[2.5pt]\nrow\\_1 & 1.111e-01 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.950 & grp\\_a \\\\ \nrow\\_2 & 2.222e+00 & banana & two & 2015-02-15 & 14:40 & 2018-02-02 14:33 & 17.950 & grp\\_a \\\\ \nrow\\_3 & 3.333e+01 & coconut & three & 2015-03-15 & 15:45 & 2018-03-03 03:44 & 1.390 & grp\\_a \\\\ \nrow\\_4 & 4.444e+02 & durian & four & 2015-04-15 & 16:50 & 2018-04-04 15:55 & 65100.000 & grp\\_a \\\\ \nrow\\_5 & 5.550e+03 & NA & five & 2015-05-15 & 17:55 & 2018-05-05 04:00 & 1325.810 & grp\\_b \\\\ \nrow\\_6 & NA & fig & six & 2015-06-15 & NA & 2018-06-06 16:11 & 13.255 & grp\\_b \\\\ \nrow\\_7 & 7.770e+05 & grapefruit & seven & NA & 19:10 & 2018-07-07 05:22 & NA & grp\\_b \\\\ \nrow\\_8 & 8.880e+06 & honeydew & eight & 2015-08-15 & 20:20 & NA & 0.440 & grp\\_b \\\\ \n\\midrule \n\\midrule \nmin & 0.11 & — & — & — & — & — & 0.44 & — \\\\ \nmax & 8,880,000.00 & — & — & — & — & — & 65,100.00 & — \\\\ \navg & 1,380,432.87 & — & — & — & — & — & 9,501.26 & — \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{l|rlcrrrrl}\n\\toprule\n & num & char & fctr & date & time & datetime & currency & group \\\\ \n\\midrule\\addlinespace[2.5pt]\nrow\\_1 & 1.111e-01 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.950 & grp\\_a \\\\ \nrow\\_2 & 2.222e+00 & banana & two & 2015-02-15 & 14:40 & 2018-02-02 14:33 & 17.950 & grp\\_a \\\\ \nrow\\_3 & 3.333e+01 & coconut & three & 2015-03-15 & 15:45 & 2018-03-03 03:44 & 1.390 & grp\\_a \\\\ \nrow\\_4 & 4.444e+02 & durian & four & 2015-04-15 & 16:50 & 2018-04-04 15:55 & 65100.000 & grp\\_a \\\\ \nrow\\_5 & 5.550e+03 & NA & five & 2015-05-15 & 17:55 & 2018-05-05 04:00 & 1325.810 & grp\\_b \\\\ \nrow\\_6 & NA & fig & six & 2015-06-15 & NA & 2018-06-06 16:11 & 13.255 & grp\\_b \\\\ \nrow\\_7 & 7.770e+05 & grapefruit & seven & NA & 19:10 & 2018-07-07 05:22 & NA & grp\\_b \\\\ \nrow\\_8 & 8.880e+06 & honeydew & eight & 2015-08-15 & 20:20 & NA & 0.440 & grp\\_b \\\\ \n\\midrule \n\\midrule \nmin & 0.11 & — & — & — & — & — & 0.44 & — \\\\ \nmax & 8,880,000.00 & — & — & — & — & — & 65,100.00 & — \\\\ \navg & 1,380,432.87 & — & — & — & — & — & 9,501.26 & — \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" --- @@ -7498,7 +7498,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{l|rlcrrrrll}\n\\toprule\n & num & char & fctr & date & time & datetime & currency & rowname & group \\\\ \n\\midrule\\addlinespace[2.5pt]\n & 1.111e-01 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.950 & row\\_1 & grp\\_a \\\\ \n & 2.222e+00 & banana & two & 2015-02-15 & 14:40 & 2018-02-02 14:33 & 17.950 & row\\_2 & grp\\_a \\\\ \n & 3.333e+01 & coconut & three & 2015-03-15 & 15:45 & 2018-03-03 03:44 & 1.390 & row\\_3 & grp\\_a \\\\ \n & 4.444e+02 & durian & four & 2015-04-15 & 16:50 & 2018-04-04 15:55 & 65100.000 & row\\_4 & grp\\_a \\\\ \n & 5.550e+03 & NA & five & 2015-05-15 & 17:55 & 2018-05-05 04:00 & 1325.810 & row\\_5 & grp\\_b \\\\ \n & NA & fig & six & 2015-06-15 & NA & 2018-06-06 16:11 & 13.255 & row\\_6 & grp\\_b \\\\ \n & 7.770e+05 & grapefruit & seven & NA & 19:10 & 2018-07-07 05:22 & NA & row\\_7 & grp\\_b \\\\ \n & 8.880e+06 & honeydew & eight & 2015-08-15 & 20:20 & NA & 0.440 & row\\_8 & grp\\_b \\\\ \n\\midrule \n\\midrule \nmin & 0.11 & — & — & — & — & — & 0.44 & — & — \\\\ \nmax & 8,880,000.00 & — & — & — & — & — & 65,100.00 & — & — \\\\ \navg & 1,380,432.87 & — & — & — & — & — & 9,501.26 & — & — \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{l|rlcrrrrll}\n\\toprule\n & num & char & fctr & date & time & datetime & currency & rowname & group \\\\ \n\\midrule\\addlinespace[2.5pt]\n & 1.111e-01 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.950 & row\\_1 & grp\\_a \\\\ \n & 2.222e+00 & banana & two & 2015-02-15 & 14:40 & 2018-02-02 14:33 & 17.950 & row\\_2 & grp\\_a \\\\ \n & 3.333e+01 & coconut & three & 2015-03-15 & 15:45 & 2018-03-03 03:44 & 1.390 & row\\_3 & grp\\_a \\\\ \n & 4.444e+02 & durian & four & 2015-04-15 & 16:50 & 2018-04-04 15:55 & 65100.000 & row\\_4 & grp\\_a \\\\ \n & 5.550e+03 & NA & five & 2015-05-15 & 17:55 & 2018-05-05 04:00 & 1325.810 & row\\_5 & grp\\_b \\\\ \n & NA & fig & six & 2015-06-15 & NA & 2018-06-06 16:11 & 13.255 & row\\_6 & grp\\_b \\\\ \n & 7.770e+05 & grapefruit & seven & NA & 19:10 & 2018-07-07 05:22 & NA & row\\_7 & grp\\_b \\\\ \n & 8.880e+06 & honeydew & eight & 2015-08-15 & 20:20 & NA & 0.440 & row\\_8 & grp\\_b \\\\ \n\\midrule \n\\midrule \nmin & 0.11 & — & — & — & — & — & 0.44 & — & — \\\\ \nmax & 8,880,000.00 & — & — & — & — & — & 65,100.00 & — & — \\\\ \navg & 1,380,432.87 & — & — & — & — & — & 9,501.26 & — & — \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" --- @@ -8075,7 +8075,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{l|rlcrrrrl}\n\\toprule\n & num & char & fctr & date & time & datetime & currency & rowname \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{9}{l}{grp\\_a} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n & 1.111e-01 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.950 & row\\_1 \\\\ \n & 2.222e+00 & banana & two & 2015-02-15 & 14:40 & 2018-02-02 14:33 & 17.950 & row\\_2 \\\\ \n & 3.333e+01 & coconut & three & 2015-03-15 & 15:45 & 2018-03-03 03:44 & 1.390 & row\\_3 \\\\ \n & 4.444e+02 & durian & four & 2015-04-15 & 16:50 & 2018-04-04 15:55 & 65100.000 & row\\_4 \\\\ \n\\midrule \nmedian & 17.78 & — & — & — & — & — & 33.95 & — \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{9}{l}{grp\\_b} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n & 5.550e+03 & NA & five & 2015-05-15 & 17:55 & 2018-05-05 04:00 & 1325.810 & row\\_5 \\\\ \n & NA & fig & six & 2015-06-15 & NA & 2018-06-06 16:11 & 13.255 & row\\_6 \\\\ \n & 7.770e+05 & grapefruit & seven & NA & 19:10 & 2018-07-07 05:22 & NA & row\\_7 \\\\ \n & 8.880e+06 & honeydew & eight & 2015-08-15 & 20:20 & NA & 0.440 & row\\_8 \\\\ \n\\midrule \nmedian & 777,000.00 & — & — & — & — & — & 13.26 & — \\\\ \n\\midrule \n\\midrule \nmin & 0.11 & — & — & — & — & — & 0.44 & — \\\\ \nmax & 8,880,000.00 & — & — & — & — & — & 65,100.00 & — \\\\ \navg & 1,380,432.87 & — & — & — & — & — & 9,501.26 & — \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{l|rlcrrrrl}\n\\toprule\n & num & char & fctr & date & time & datetime & currency & rowname \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{9}{l}{grp\\_a} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n & 1.111e-01 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.950 & row\\_1 \\\\ \n & 2.222e+00 & banana & two & 2015-02-15 & 14:40 & 2018-02-02 14:33 & 17.950 & row\\_2 \\\\ \n & 3.333e+01 & coconut & three & 2015-03-15 & 15:45 & 2018-03-03 03:44 & 1.390 & row\\_3 \\\\ \n & 4.444e+02 & durian & four & 2015-04-15 & 16:50 & 2018-04-04 15:55 & 65100.000 & row\\_4 \\\\ \n\\midrule \nmedian & 17.78 & — & — & — & — & — & 33.95 & — \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{9}{l}{grp\\_b} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n & 5.550e+03 & NA & five & 2015-05-15 & 17:55 & 2018-05-05 04:00 & 1325.810 & row\\_5 \\\\ \n & NA & fig & six & 2015-06-15 & NA & 2018-06-06 16:11 & 13.255 & row\\_6 \\\\ \n & 7.770e+05 & grapefruit & seven & NA & 19:10 & 2018-07-07 05:22 & NA & row\\_7 \\\\ \n & 8.880e+06 & honeydew & eight & 2015-08-15 & 20:20 & NA & 0.440 & row\\_8 \\\\ \n\\midrule \nmedian & 777,000.00 & — & — & — & — & — & 13.26 & — \\\\ \n\\midrule \n\\midrule \nmin & 0.11 & — & — & — & — & — & 0.44 & — \\\\ \nmax & 8,880,000.00 & — & — & — & — & — & 65,100.00 & — \\\\ \navg & 1,380,432.87 & — & — & — & — & — & 9,501.26 & — \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" --- @@ -8668,7 +8668,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{l|rcrrrrll}\n\\toprule\n & num & fctr & date & time & datetime & currency & rowname & group \\\\ \n\\midrule\\addlinespace[2.5pt]\napricot & 1.111e-01 & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.950 & row\\_1 & grp\\_a \\\\ \nbanana & 2.222e+00 & two & 2015-02-15 & 14:40 & 2018-02-02 14:33 & 17.950 & row\\_2 & grp\\_a \\\\ \ncoconut & 3.333e+01 & three & 2015-03-15 & 15:45 & 2018-03-03 03:44 & 1.390 & row\\_3 & grp\\_a \\\\ \ndurian & 4.444e+02 & four & 2015-04-15 & 16:50 & 2018-04-04 15:55 & 65100.000 & row\\_4 & grp\\_a \\\\ \nNA & 5.550e+03 & five & 2015-05-15 & 17:55 & 2018-05-05 04:00 & 1325.810 & row\\_5 & grp\\_b \\\\ \nfig & NA & six & 2015-06-15 & NA & 2018-06-06 16:11 & 13.255 & row\\_6 & grp\\_b \\\\ \ngrapefruit & 7.770e+05 & seven & NA & 19:10 & 2018-07-07 05:22 & NA & row\\_7 & grp\\_b \\\\ \nhoneydew & 8.880e+06 & eight & 2015-08-15 & 20:20 & NA & 0.440 & row\\_8 & grp\\_b \\\\ \n\\midrule \n\\midrule \nmin & 0.11 & — & — & — & — & 0.44 & — & — \\\\ \nmax & 8,880,000.00 & — & — & — & — & 65,100.00 & — & — \\\\ \navg & 1,380,432.87 & — & — & — & — & 9,501.26 & — & — \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{l|rcrrrrll}\n\\toprule\n & num & fctr & date & time & datetime & currency & rowname & group \\\\ \n\\midrule\\addlinespace[2.5pt]\napricot & 1.111e-01 & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.950 & row\\_1 & grp\\_a \\\\ \nbanana & 2.222e+00 & two & 2015-02-15 & 14:40 & 2018-02-02 14:33 & 17.950 & row\\_2 & grp\\_a \\\\ \ncoconut & 3.333e+01 & three & 2015-03-15 & 15:45 & 2018-03-03 03:44 & 1.390 & row\\_3 & grp\\_a \\\\ \ndurian & 4.444e+02 & four & 2015-04-15 & 16:50 & 2018-04-04 15:55 & 65100.000 & row\\_4 & grp\\_a \\\\ \nNA & 5.550e+03 & five & 2015-05-15 & 17:55 & 2018-05-05 04:00 & 1325.810 & row\\_5 & grp\\_b \\\\ \nfig & NA & six & 2015-06-15 & NA & 2018-06-06 16:11 & 13.255 & row\\_6 & grp\\_b \\\\ \ngrapefruit & 7.770e+05 & seven & NA & 19:10 & 2018-07-07 05:22 & NA & row\\_7 & grp\\_b \\\\ \nhoneydew & 8.880e+06 & eight & 2015-08-15 & 20:20 & NA & 0.440 & row\\_8 & grp\\_b \\\\ \n\\midrule \n\\midrule \nmin & 0.11 & — & — & — & — & 0.44 & — & — \\\\ \nmax & 8,880,000.00 & — & — & — & — & 65,100.00 & — & — \\\\ \navg & 1,380,432.87 & — & — & — & — & 9,501.26 & — & — \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" --- @@ -9195,7 +9195,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{l|rcrrrrl}\n\\toprule\n & num & fctr & date & time & datetime & currency & rowname \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{8}{l}{grp\\_a} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\napricot & 1.111e-01 & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.950 & row\\_1 \\\\ \nbanana & 2.222e+00 & two & 2015-02-15 & 14:40 & 2018-02-02 14:33 & 17.950 & row\\_2 \\\\ \ncoconut & 3.333e+01 & three & 2015-03-15 & 15:45 & 2018-03-03 03:44 & 1.390 & row\\_3 \\\\ \ndurian & 4.444e+02 & four & 2015-04-15 & 16:50 & 2018-04-04 15:55 & 65100.000 & row\\_4 \\\\ \n\\midrule \nmedian & 17.78 & — & — & — & — & 33.95 & — \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{8}{l}{grp\\_b} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\nNA & 5.550e+03 & five & 2015-05-15 & 17:55 & 2018-05-05 04:00 & 1325.810 & row\\_5 \\\\ \nfig & NA & six & 2015-06-15 & NA & 2018-06-06 16:11 & 13.255 & row\\_6 \\\\ \ngrapefruit & 7.770e+05 & seven & NA & 19:10 & 2018-07-07 05:22 & NA & row\\_7 \\\\ \nhoneydew & 8.880e+06 & eight & 2015-08-15 & 20:20 & NA & 0.440 & row\\_8 \\\\ \n\\midrule \nmedian & 777,000.00 & — & — & — & — & 13.26 & — \\\\ \n\\midrule \n\\midrule \nmin & 0.11 & — & — & — & — & 0.44 & — \\\\ \nmax & 8,880,000.00 & — & — & — & — & 65,100.00 & — \\\\ \navg & 1,380,432.87 & — & — & — & — & 9,501.26 & — \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{l|rcrrrrl}\n\\toprule\n & num & fctr & date & time & datetime & currency & rowname \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{8}{l}{grp\\_a} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\napricot & 1.111e-01 & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.950 & row\\_1 \\\\ \nbanana & 2.222e+00 & two & 2015-02-15 & 14:40 & 2018-02-02 14:33 & 17.950 & row\\_2 \\\\ \ncoconut & 3.333e+01 & three & 2015-03-15 & 15:45 & 2018-03-03 03:44 & 1.390 & row\\_3 \\\\ \ndurian & 4.444e+02 & four & 2015-04-15 & 16:50 & 2018-04-04 15:55 & 65100.000 & row\\_4 \\\\ \n\\midrule \nmedian & 17.78 & — & — & — & — & 33.95 & — \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{8}{l}{grp\\_b} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\nNA & 5.550e+03 & five & 2015-05-15 & 17:55 & 2018-05-05 04:00 & 1325.810 & row\\_5 \\\\ \nfig & NA & six & 2015-06-15 & NA & 2018-06-06 16:11 & 13.255 & row\\_6 \\\\ \ngrapefruit & 7.770e+05 & seven & NA & 19:10 & 2018-07-07 05:22 & NA & row\\_7 \\\\ \nhoneydew & 8.880e+06 & eight & 2015-08-15 & 20:20 & NA & 0.440 & row\\_8 \\\\ \n\\midrule \nmedian & 777,000.00 & — & — & — & — & 13.26 & — \\\\ \n\\midrule \n\\midrule \nmin & 0.11 & — & — & — & — & 0.44 & — \\\\ \nmax & 8,880,000.00 & — & — & — & — & 65,100.00 & — \\\\ \navg & 1,380,432.87 & — & — & — & — & 9,501.26 & — \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" --- @@ -9756,7 +9756,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{l|rlcrrrr}\n\\toprule\n & num & char & fctr & date & time & datetime & currency \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{8}{l}{grp\\_a} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\nrow\\_1 & 1.111e-01 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.950 \\\\ \nrow\\_2 & 2.222e+00 & banana & two & 2015-02-15 & 14:40 & 2018-02-02 14:33 & 17.950 \\\\ \nrow\\_3 & 3.333e+01 & coconut & three & 2015-03-15 & 15:45 & 2018-03-03 03:44 & 1.390 \\\\ \nrow\\_4 & 4.444e+02 & durian & four & 2015-04-15 & 16:50 & 2018-04-04 15:55 & 65100.000 \\\\ \n\\midrule \nmedian & 17.78 & — & — & — & — & — & 33.95 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{8}{l}{grp\\_b} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\nrow\\_5 & 5.550e+03 & NA & five & 2015-05-15 & 17:55 & 2018-05-05 04:00 & 1325.810 \\\\ \nrow\\_6 & NA & fig & six & 2015-06-15 & NA & 2018-06-06 16:11 & 13.255 \\\\ \nrow\\_7 & 7.770e+05 & grapefruit & seven & NA & 19:10 & 2018-07-07 05:22 & NA \\\\ \nrow\\_8 & 8.880e+06 & honeydew & eight & 2015-08-15 & 20:20 & NA & 0.440 \\\\ \n\\midrule \nmedian & 777,000.00 & — & — & — & — & — & 13.26 \\\\ \n\\midrule \n\\midrule \nmin & 0.11 & — & — & — & — & — & 0.44 \\\\ \nmax & 8,880,000.00 & — & — & — & — & — & 65,100.00 \\\\ \navg & 1,380,432.87 & — & — & — & — & — & 9,501.26 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{l|rlcrrrr}\n\\toprule\n & num & char & fctr & date & time & datetime & currency \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{8}{l}{grp\\_a} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\nrow\\_1 & 1.111e-01 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.950 \\\\ \nrow\\_2 & 2.222e+00 & banana & two & 2015-02-15 & 14:40 & 2018-02-02 14:33 & 17.950 \\\\ \nrow\\_3 & 3.333e+01 & coconut & three & 2015-03-15 & 15:45 & 2018-03-03 03:44 & 1.390 \\\\ \nrow\\_4 & 4.444e+02 & durian & four & 2015-04-15 & 16:50 & 2018-04-04 15:55 & 65100.000 \\\\ \n\\midrule \nmedian & 17.78 & — & — & — & — & — & 33.95 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{8}{l}{grp\\_b} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\nrow\\_5 & 5.550e+03 & NA & five & 2015-05-15 & 17:55 & 2018-05-05 04:00 & 1325.810 \\\\ \nrow\\_6 & NA & fig & six & 2015-06-15 & NA & 2018-06-06 16:11 & 13.255 \\\\ \nrow\\_7 & 7.770e+05 & grapefruit & seven & NA & 19:10 & 2018-07-07 05:22 & NA \\\\ \nrow\\_8 & 8.880e+06 & honeydew & eight & 2015-08-15 & 20:20 & NA & 0.440 \\\\ \n\\midrule \nmedian & 777,000.00 & — & — & — & — & — & 13.26 \\\\ \n\\midrule \n\\midrule \nmin & 0.11 & — & — & — & — & — & 0.44 \\\\ \nmax & 8,880,000.00 & — & — & — & — & — & 65,100.00 \\\\ \navg & 1,380,432.87 & — & — & — & — & — & 9,501.26 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" --- @@ -10228,7 +10228,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{l|r}\n\\toprule\n & population \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{2}{l}{1960s} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n1960 & 93,216,000 \\\\ \n1961 & 94,055,000 \\\\ \n1962 & 94,933,000 \\\\ \n1963 & 95,900,000 \\\\ \n1964 & 96,903,000 \\\\ \n1965 & 97,952,000 \\\\ \n1966 & 98,851,000 \\\\ \n1967 & 99,879,000 \\\\ \n1968 & 101,011,000 \\\\ \n1969 & 102,219,000 \\\\ \n\\midrule \n{\\bfseries \\cellcolor[HTML]{rgba(173,216,230,0.5)}{min}} & 93,216,000 \\\\ \nmax & 102,219,000 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{l|r}\n\\toprule\n & population \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{2}{l}{1960s} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n1960 & 93,216,000 \\\\ \n1961 & 94,055,000 \\\\ \n1962 & 94,933,000 \\\\ \n1963 & 95,900,000 \\\\ \n1964 & 96,903,000 \\\\ \n1965 & 97,952,000 \\\\ \n1966 & 98,851,000 \\\\ \n1967 & 99,879,000 \\\\ \n1968 & 101,011,000 \\\\ \n1969 & 102,219,000 \\\\ \n\\midrule \n{\\bfseries \\cellcolor[HTML]{rgba(173,216,230,0.5)}{min}} & 93,216,000 \\\\ \nmax & 102,219,000 \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" --- diff --git a/tests/testthat/_snaps/tab_footnote.md b/tests/testthat/_snaps/tab_footnote.md index 6dac86ec54..d144822a65 100644 --- a/tests/testthat/_snaps/tab_footnote.md +++ b/tests/testthat/_snaps/tab_footnote.md @@ -41,7 +41,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{rlcrrrrll}\n\\toprule\nnum & char & fctr & date & time & datetime & currency & row & group \\\\ \n\\midrule\\addlinespace[2.5pt]\n0.1111 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.95 & row\\_1 & grp\\_a \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\nA footnote.\\\\\n\\end{minipage}\n\\endgroup\n" + [1] "\\begingroup\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{rlcrrrrll}\n\\toprule\nnum & char & fctr & date & time & datetime & currency & row & group \\\\ \n\\midrule\\addlinespace[2.5pt]\n0.1111 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.95 & row\\_1 & grp\\_a \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\nA footnote.\\\\\n\\end{minipage}\n\\endgroup\n" --- @@ -169,7 +169,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{rlcrrrrll}\n\\toprule\nnum & char & fctr & date & time & datetime & currency & row & group \\\\ \n\\midrule\\addlinespace[2.5pt]\n0.1111 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.95 & row\\_1 & grp\\_a \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\nA footnote.\\\\\n\\end{minipage}\n\\endgroup\n" + [1] "\\begingroup\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{rlcrrrrll}\n\\toprule\nnum & char & fctr & date & time & datetime & currency & row & group \\\\ \n\\midrule\\addlinespace[2.5pt]\n0.1111 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.95 & row\\_1 & grp\\_a \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\nA footnote.\\\\\n\\end{minipage}\n\\endgroup\n" --- @@ -300,7 +300,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{rlcrrrrll}\n\\toprule\nnum & char & fctr & date & time & datetime & currency & row & group \\\\ \n\\midrule\\addlinespace[2.5pt]\n0.1111\\textsuperscript{\\textit{1}} & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.95 & row\\_1 & grp\\_a \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\nA footnote.\\\\\n\\textsuperscript{\\textit{1}}A footnote.\\\\\n\\end{minipage}\n\\endgroup\n" + [1] "\\begingroup\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{rlcrrrrll}\n\\toprule\nnum & char & fctr & date & time & datetime & currency & row & group \\\\ \n\\midrule\\addlinespace[2.5pt]\n0.1111\\textsuperscript{\\textit{1}} & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.95 & row\\_1 & grp\\_a \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\nA footnote.\\\\\n\\textsuperscript{\\textit{1}}A footnote.\\\\\n\\end{minipage}\n\\endgroup\n" --- @@ -430,7 +430,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{rlcrrrrll}\n\\toprule\nnum & char & fctr & date & time & datetime & currency & row & group \\\\ \n\\midrule\\addlinespace[2.5pt]\n0.1111\\textsuperscript{\\textit{1}} & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.95 & row\\_1 & grp\\_a \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\nA footnote. A second footnote. \\textsuperscript{\\textit{1}}location note\\\\\n\\end{minipage}\n\\endgroup\n" + [1] "\\begingroup\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{rlcrrrrll}\n\\toprule\nnum & char & fctr & date & time & datetime & currency & row & group \\\\ \n\\midrule\\addlinespace[2.5pt]\n0.1111\\textsuperscript{\\textit{1}} & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.95 & row\\_1 & grp\\_a \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\nA footnote. A second footnote. \\textsuperscript{\\textit{1}}location note\\\\\n\\end{minipage}\n\\endgroup\n" --- @@ -648,7 +648,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{l|l|r}\n\\toprule\n\\multicolumn{2}{c}{} & Pizzas Sold \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multirow{4}{*}{peppr\\_salami\\textsuperscript{\\textit{1}}} & L & 696 \\\\ \n & M & 428 \\\\ \n & S & 322 \\\\ \n\\cmidrule(l{-0.05em}r){2-3}\n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{sum} & 1,446 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multirow{4}{*}{soppressata} & L & 405 \\\\ \n & M & 268 \\\\ \n & S & 288 \\\\ \n\\cmidrule(l{-0.05em}r){2-3}\n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{sum} & 961 \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\n\\textsuperscript{\\textit{1}}The Pepper-Salami.\\\\\n\\end{minipage}\n\\endgroup\n" + [1] "\\begingroup\n\\setlength{\\LTpost}{0mm}\n\\begin{longtable}{l|l|r}\n\\toprule\n\\multicolumn{2}{c}{} & Pizzas Sold \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multirow{4}{*}{peppr\\_salami\\textsuperscript{\\textit{1}}} & L & 696 \\\\ \n & M & 428 \\\\ \n & S & 322 \\\\ \n\\cmidrule(l{-0.05em}r){2-3}\n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{sum} & 1,446 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multirow{4}{*}{soppressata} & L & 405 \\\\ \n & M & 268 \\\\ \n & S & 288 \\\\ \n\\cmidrule(l{-0.05em}r){2-3}\n\\multicolumn{1}{l|}{} & \\multicolumn{1}{l|}{sum} & 961 \\\\ \n\\bottomrule\n\\end{longtable}\n\\begin{minipage}{\\linewidth}\n\\textsuperscript{\\textit{1}}The Pepper-Salami.\\\\\n\\end{minipage}\n\\endgroup\n" --- diff --git a/tests/testthat/_snaps/tab_stub_indent.md b/tests/testthat/_snaps/tab_stub_indent.md index 0b79b35c4f..1050eb56ff 100644 --- a/tests/testthat/_snaps/tab_stub_indent.md +++ b/tests/testthat/_snaps/tab_stub_indent.md @@ -100,7 +100,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{l|rlcrrrrl}\n\\toprule\n & num & char & fctr & date & time & datetime & currency & group \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\hspace*{3.75pt} row\\_1 & 1.111e-01 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.950 & grp\\_a \\\\ \n\\hspace*{3.75pt} row\\_2 & 2.222e+00 & banana & two & 2015-02-15 & 14:40 & 2018-02-02 14:33 & 17.950 & grp\\_a \\\\ \n\\hspace*{3.75pt} row\\_3 & 3.333e+01 & coconut & three & 2015-03-15 & 15:45 & 2018-03-03 03:44 & 1.390 & grp\\_a \\\\ \nrow\\_4 & 4.444e+02 & durian & four & 2015-04-15 & 16:50 & 2018-04-04 15:55 & 65100.000 & grp\\_a \\\\ \nrow\\_5 & 5.550e+03 & NA & five & 2015-05-15 & 17:55 & 2018-05-05 04:00 & 1325.810 & grp\\_b \\\\ \nrow\\_6 & NA & fig & six & 2015-06-15 & NA & 2018-06-06 16:11 & 13.255 & grp\\_b \\\\ \nrow\\_7 & 7.770e+05 & grapefruit & seven & NA & 19:10 & 2018-07-07 05:22 & NA & grp\\_b \\\\ \nrow\\_8 & 8.880e+06 & honeydew & eight & 2015-08-15 & 20:20 & NA & 0.440 & grp\\_b \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{l|rlcrrrrl}\n\\toprule\n & num & char & fctr & date & time & datetime & currency & group \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\hspace*{3.75pt} row\\_1 & 1.111e-01 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.950 & grp\\_a \\\\ \n\\hspace*{3.75pt} row\\_2 & 2.222e+00 & banana & two & 2015-02-15 & 14:40 & 2018-02-02 14:33 & 17.950 & grp\\_a \\\\ \n\\hspace*{3.75pt} row\\_3 & 3.333e+01 & coconut & three & 2015-03-15 & 15:45 & 2018-03-03 03:44 & 1.390 & grp\\_a \\\\ \nrow\\_4 & 4.444e+02 & durian & four & 2015-04-15 & 16:50 & 2018-04-04 15:55 & 65100.000 & grp\\_a \\\\ \nrow\\_5 & 5.550e+03 & NA & five & 2015-05-15 & 17:55 & 2018-05-05 04:00 & 1325.810 & grp\\_b \\\\ \nrow\\_6 & NA & fig & six & 2015-06-15 & NA & 2018-06-06 16:11 & 13.255 & grp\\_b \\\\ \nrow\\_7 & 7.770e+05 & grapefruit & seven & NA & 19:10 & 2018-07-07 05:22 & NA & grp\\_b \\\\ \nrow\\_8 & 8.880e+06 & honeydew & eight & 2015-08-15 & 20:20 & NA & 0.440 & grp\\_b \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" --- @@ -204,7 +204,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{l|rlcrrrrl}\n\\toprule\n & num & char & fctr & date & time & datetime & currency & group \\\\ \n\\midrule\\addlinespace[2.5pt]\nrow\\_1 & 1.111e-01 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.950 & grp\\_a \\\\ \nrow\\_2 & 2.222e+00 & banana & two & 2015-02-15 & 14:40 & 2018-02-02 14:33 & 17.950 & grp\\_a \\\\ \n\\hspace*{7.5pt} row\\_3 & 3.333e+01 & coconut & three & 2015-03-15 & 15:45 & 2018-03-03 03:44 & 1.390 & grp\\_a \\\\ \n\\hspace*{7.5pt} row\\_4 & 4.444e+02 & durian & four & 2015-04-15 & 16:50 & 2018-04-04 15:55 & 65100.000 & grp\\_a \\\\ \n\\hspace*{7.5pt} row\\_5 & 5.550e+03 & NA & five & 2015-05-15 & 17:55 & 2018-05-05 04:00 & 1325.810 & grp\\_b \\\\ \nrow\\_6 & NA & fig & six & 2015-06-15 & NA & 2018-06-06 16:11 & 13.255 & grp\\_b \\\\ \nrow\\_7 & 7.770e+05 & grapefruit & seven & NA & 19:10 & 2018-07-07 05:22 & NA & grp\\_b \\\\ \nrow\\_8 & 8.880e+06 & honeydew & eight & 2015-08-15 & 20:20 & NA & 0.440 & grp\\_b \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{l|rlcrrrrl}\n\\toprule\n & num & char & fctr & date & time & datetime & currency & group \\\\ \n\\midrule\\addlinespace[2.5pt]\nrow\\_1 & 1.111e-01 & apricot & one & 2015-01-15 & 13:35 & 2018-01-01 02:22 & 49.950 & grp\\_a \\\\ \nrow\\_2 & 2.222e+00 & banana & two & 2015-02-15 & 14:40 & 2018-02-02 14:33 & 17.950 & grp\\_a \\\\ \n\\hspace*{7.5pt} row\\_3 & 3.333e+01 & coconut & three & 2015-03-15 & 15:45 & 2018-03-03 03:44 & 1.390 & grp\\_a \\\\ \n\\hspace*{7.5pt} row\\_4 & 4.444e+02 & durian & four & 2015-04-15 & 16:50 & 2018-04-04 15:55 & 65100.000 & grp\\_a \\\\ \n\\hspace*{7.5pt} row\\_5 & 5.550e+03 & NA & five & 2015-05-15 & 17:55 & 2018-05-05 04:00 & 1325.810 & grp\\_b \\\\ \nrow\\_6 & NA & fig & six & 2015-06-15 & NA & 2018-06-06 16:11 & 13.255 & grp\\_b \\\\ \nrow\\_7 & 7.770e+05 & grapefruit & seven & NA & 19:10 & 2018-07-07 05:22 & NA & grp\\_b \\\\ \nrow\\_8 & 8.880e+06 & honeydew & eight & 2015-08-15 & 20:20 & NA & 0.440 & grp\\_b \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" # Indentation values can be obtained from a table column @@ -263,7 +263,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{l|crr}\n\\toprule\n & fctr & currency & rank \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\hspace*{3.75pt} durian & four & 65100.000 & 1 \\\\ \n\\hspace*{7.5pt} NA & five & 1325.810 & 2 \\\\ \n\\hspace*{11.25pt} apricot & one & 49.950 & 3 \\\\ \n\\hspace*{15pt} banana & two & 17.950 & 4 \\\\ \n\\hspace*{18.75pt} fig & six & 13.255 & 5 \\\\ \n\\hspace*{18.75pt} coconut & three & 1.390 & 6 \\\\ \n\\hspace*{18.75pt} honeydew & eight & 0.440 & 7 \\\\ \ngrapefruit & seven & NA & NA \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{l|crr}\n\\toprule\n & fctr & currency & rank \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\hspace*{3.75pt} durian & four & 65100.000 & 1 \\\\ \n\\hspace*{7.5pt} NA & five & 1325.810 & 2 \\\\ \n\\hspace*{11.25pt} apricot & one & 49.950 & 3 \\\\ \n\\hspace*{15pt} banana & two & 17.950 & 4 \\\\ \n\\hspace*{18.75pt} fig & six & 13.255 & 5 \\\\ \n\\hspace*{18.75pt} coconut & three & 1.390 & 6 \\\\ \n\\hspace*{18.75pt} honeydew & eight & 0.440 & 7 \\\\ \ngrapefruit & seven & NA & NA \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" --- @@ -328,7 +328,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{l|crr}\n\\toprule\n & fctr & currency & rank \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{4}{l}{grp\\_a} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n\\hspace*{3.75pt} durian & four & 65100.000 & 1 \\\\ \n\\hspace*{11.25pt} apricot & one & 49.950 & 3 \\\\ \n\\hspace*{15pt} banana & two & 17.950 & 4 \\\\ \n\\hspace*{18.75pt} coconut & three & 1.390 & 6 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{4}{l}{grp\\_b} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n\\hspace*{7.5pt} NA & five & 1325.810 & 2 \\\\ \n\\hspace*{18.75pt} fig & six & 13.255 & 5 \\\\ \n\\hspace*{18.75pt} honeydew & eight & 0.440 & 7 \\\\ \ngrapefruit & seven & NA & NA \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{l|crr}\n\\toprule\n & fctr & currency & rank \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{4}{l}{grp\\_a} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n\\hspace*{3.75pt} durian & four & 65100.000 & 1 \\\\ \n\\hspace*{11.25pt} apricot & one & 49.950 & 3 \\\\ \n\\hspace*{15pt} banana & two & 17.950 & 4 \\\\ \n\\hspace*{18.75pt} coconut & three & 1.390 & 6 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{4}{l}{grp\\_b} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n\\hspace*{7.5pt} NA & five & 1325.810 & 2 \\\\ \n\\hspace*{18.75pt} fig & six & 13.255 & 5 \\\\ \n\\hspace*{18.75pt} honeydew & eight & 0.440 & 7 \\\\ \ngrapefruit & seven & NA & NA \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" --- @@ -393,7 +393,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{l|crr}\n\\toprule\n & fctr & currency & rank \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{4}{l}{grp\\_a} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n\\hspace*{3.75pt} durian & four & 65100.000 & 1 \\\\ \n\\hspace*{11.25pt} apricot & one & 49.950 & 3 \\\\ \n\\hspace*{15pt} banana & two & 17.950 & 4 \\\\ \n\\hspace*{18.75pt} coconut & three & 1.390 & 6 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{4}{l}{grp\\_b} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n\\hspace*{7.5pt} NA & five & 1325.810 & 2 \\\\ \n\\hspace*{18.75pt} fig & six & 13.255 & 5 \\\\ \n\\hspace*{18.75pt} honeydew & eight & 0.440 & 7 \\\\ \n\\hspace*{11.25pt} grapefruit & seven & NA & NA \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{l|crr}\n\\toprule\n & fctr & currency & rank \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{4}{l}{grp\\_a} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n\\hspace*{3.75pt} durian & four & 65100.000 & 1 \\\\ \n\\hspace*{11.25pt} apricot & one & 49.950 & 3 \\\\ \n\\hspace*{15pt} banana & two & 17.950 & 4 \\\\ \n\\hspace*{18.75pt} coconut & three & 1.390 & 6 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{4}{l}{grp\\_b} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n\\hspace*{7.5pt} NA & five & 1325.810 & 2 \\\\ \n\\hspace*{18.75pt} fig & six & 13.255 & 5 \\\\ \n\\hspace*{18.75pt} honeydew & eight & 0.440 & 7 \\\\ \n\\hspace*{11.25pt} grapefruit & seven & NA & NA \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" --- @@ -458,7 +458,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{l|crr}\n\\toprule\n & fctr & currency & rank \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{4}{l}{grp\\_a} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n\\hspace*{7.5pt} durian & four & 65100.000 & 1 \\\\ \n\\hspace*{15pt} apricot & one & 49.950 & 3 \\\\ \n\\hspace*{18.75pt} banana & two & 17.950 & 4 \\\\ \n\\hspace*{18.75pt} coconut & three & 1.390 & 6 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{4}{l}{grp\\_b} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n\\hspace*{11.25pt} NA & five & 1325.810 & 2 \\\\ \n\\hspace*{18.75pt} fig & six & 13.255 & 5 \\\\ \n\\hspace*{18.75pt} honeydew & eight & 0.440 & 7 \\\\ \n\\hspace*{11.25pt} grapefruit & seven & NA & NA \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{l|crr}\n\\toprule\n & fctr & currency & rank \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{4}{l}{grp\\_a} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n\\hspace*{7.5pt} durian & four & 65100.000 & 1 \\\\ \n\\hspace*{15pt} apricot & one & 49.950 & 3 \\\\ \n\\hspace*{18.75pt} banana & two & 17.950 & 4 \\\\ \n\\hspace*{18.75pt} coconut & three & 1.390 & 6 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{4}{l}{grp\\_b} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n\\hspace*{11.25pt} NA & five & 1325.810 & 2 \\\\ \n\\hspace*{18.75pt} fig & six & 13.255 & 5 \\\\ \n\\hspace*{18.75pt} honeydew & eight & 0.440 & 7 \\\\ \n\\hspace*{11.25pt} grapefruit & seven & NA & NA \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" --- @@ -523,7 +523,7 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{l|crr}\n\\toprule\n & fctr & currency & rank \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{4}{l}{grp\\_a} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n\\hspace*{3.75pt} durian & four & 65100.000 & 1 \\\\ \n\\hspace*{11.25pt} apricot & one & 49.950 & 3 \\\\ \n\\hspace*{15pt} banana & two & 17.950 & 4 \\\\ \ncoconut & three & 1.390 & 6 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{4}{l}{grp\\_b} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\nNA & five & 1325.810 & 2 \\\\ \nfig & six & 13.255 & 5 \\\\ \nhoneydew & eight & 0.440 & 7 \\\\ \n\\hspace*{11.25pt} grapefruit & seven & NA & NA \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{l|crr}\n\\toprule\n & fctr & currency & rank \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{4}{l}{grp\\_a} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\n\\hspace*{3.75pt} durian & four & 65100.000 & 1 \\\\ \n\\hspace*{11.25pt} apricot & one & 49.950 & 3 \\\\ \n\\hspace*{15pt} banana & two & 17.950 & 4 \\\\ \ncoconut & three & 1.390 & 6 \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\multicolumn{4}{l}{grp\\_b} \\\\[2.5pt] \n\\midrule\\addlinespace[2.5pt]\nNA & five & 1325.810 & 2 \\\\ \nfig & six & 13.255 & 5 \\\\ \nhoneydew & eight & 0.440 & 7 \\\\ \n\\hspace*{11.25pt} grapefruit & seven & NA & NA \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" --- @@ -582,5 +582,5 @@ Code as.character(as_latex(gt_tbl)) Output - [1] "\\begingroup\n\\fontsize{12.0pt}{14.4pt}\\selectfont\n\\begin{longtable}{l|crr}\n\\toprule\n & fctr & currency & rank \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\hspace*{3.75pt} durian & four & 65100.000 & 1.7 \\\\ \n\\hspace*{7.5pt} NA & five & 1325.810 & 2.7 \\\\ \n\\hspace*{11.25pt} apricot & one & 49.950 & 3.7 \\\\ \n\\hspace*{15pt} banana & two & 17.950 & 4.7 \\\\ \n\\hspace*{18.75pt} fig & six & 13.255 & 5.7 \\\\ \n\\hspace*{18.75pt} coconut & three & 1.390 & 6.7 \\\\ \n\\hspace*{18.75pt} honeydew & eight & 0.440 & 7.7 \\\\ \ngrapefruit & seven & NA & NA \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" + [1] "\\begingroup\n\\begin{longtable}{l|crr}\n\\toprule\n & fctr & currency & rank \\\\ \n\\midrule\\addlinespace[2.5pt]\n\\hspace*{3.75pt} durian & four & 65100.000 & 1.7 \\\\ \n\\hspace*{7.5pt} NA & five & 1325.810 & 2.7 \\\\ \n\\hspace*{11.25pt} apricot & one & 49.950 & 3.7 \\\\ \n\\hspace*{15pt} banana & two & 17.950 & 4.7 \\\\ \n\\hspace*{18.75pt} fig & six & 13.255 & 5.7 \\\\ \n\\hspace*{18.75pt} coconut & three & 1.390 & 6.7 \\\\ \n\\hspace*{18.75pt} honeydew & eight & 0.440 & 7.7 \\\\ \ngrapefruit & seven & NA & NA \\\\ \n\\bottomrule\n\\end{longtable}\n\\endgroup\n" diff --git a/tests/testthat/test-as_raw_html.R b/tests/testthat/test-as_raw_html.R index f90b21cc4e..7ba6c902cb 100644 --- a/tests/testthat/test-as_raw_html.R +++ b/tests/testthat/test-as_raw_html.R @@ -6,7 +6,7 @@ test_that("as_raw_html() produces the same table every time", { gsub("id=\"[a-z]*?\"", "", .) gt_html_1_sha1 <- digest::sha1(gt_html_1) - expect_equal(gt_html_1_sha1, "15696b3707eb1ead28732422a6f25122e9b5a601") + expect_equal(gt_html_1_sha1, "494092077119a36e8e6bbf90e6d84fa3da380745") gt_html_2 <- gt( @@ -115,7 +115,7 @@ test_that("as_raw_html() produces the same table every time", { gsub("id=\"[a-z]*?\"", "", .) gt_html_2_sha1 <- digest::sha1(gt_html_2) - expect_equal(gt_html_2_sha1, "86c0738b99e255ed0ca2ed1e7bd52ca3d2e0b78a") + expect_equal(gt_html_2_sha1, "761849922a68f1b201a3101c179a3aae8bb51fd2") # Expect that font family values with multiple words (i.e., have a space # character) added with `tab_style()` preserve single-quote characters diff --git a/tests/testthat/test-l_table_parts.R b/tests/testthat/test-l_table_parts.R index ec4c64c8c7..51f3fc6f29 100644 --- a/tests/testthat/test-l_table_parts.R +++ b/tests/testthat/test-l_table_parts.R @@ -28,7 +28,7 @@ test_that("A gt table contains the expected heading components", { # Expect a characteristic pattern expect_match( as_latex(tbl_latex) %>% as.character(), - "\\caption*{\n{\\large test title}\n} \n\\fontsize", + "\\caption*{\n{\\large test title}\n} \n\\begin{", fixed = TRUE ) diff --git a/tests/testthat/test-tab_options.R b/tests/testthat/test-tab_options.R index 65ec80889c..85b4d22ac7 100644 --- a/tests/testthat/test-tab_options.R +++ b/tests/testthat/test-tab_options.R @@ -146,7 +146,7 @@ test_that("The internal `opts_df` table can be correctly modified", { c(dt_options_get_value(data = data, option = "table_font_size"), dt_options_get_value(data = tbl_html, option = "table_font_size") ) %>% - expect_equal(c("16px", "14px")) + expect_identical(c(NA_character_, "14px")) # Modify the `table.font.size` option using just a numeric value tbl_html <- data %>% tab_options(table.font.size = 14) @@ -155,7 +155,7 @@ test_that("The internal `opts_df` table can be correctly modified", { c(dt_options_get_value(data = data, option = "table_font_size"), dt_options_get_value(data = tbl_html, option = "table_font_size") ) %>% - expect_equal(c("16px", "14px")) + expect_identical(c(NA_character_, "14px")) # Modify the `table.border.top.style` option tbl_html <- data %>% tab_options(table.border.top.style = "dashed")