powered by
These utility functions were copied from the internals of kableExtra, and assist in escaping special characters in LaTeX and HTML tables. These function assist in the creations of tables via as_kable_extra().
as_kable_extra()
.escape_html(x).escape_latex(x, newlines = TRUE, align = "c").escape_latex2(x, newlines = TRUE, align = "c")
.escape_latex(x, newlines = TRUE, align = "c")
.escape_latex2(x, newlines = TRUE, align = "c")
character vector
character vector with escaped special characters
# NOT RUN { .escape_latex(c("%", "{test}")) .escape_html(c(">0.9", "line\nbreak")) # }
Run the code above in your browser using DataLab