gt icon indicating copy to clipboard operation
gt copied to clipboard

nanoplot returns Error with LaTeX output

Open edonnachie opened this issue 1 year ago • 1 comments

Description

Nanoplots are seemingly not implemented for LaTeX output, and write HTML to the .tex file. Obviously, this returns in an error when compiling to PDF:

More generally, LaTeX output does seem to be weak. Please note this in your documentation, which only states that LaTeX output is a feature. I do understand the difficulties of LaTeX, but false promises are frustrating.

Reproducible example

I included the examples from the package documentation as a chunk in an rmarkdown document. See attached (I had to change the extension to upload).

Expected result

The ramarkdown table correctly shows the table with nanoplot when compiled to HTML. When compiled to LaTeX, the tex file does not compile because HTML code with styling has been dumped to the output.

End gt_test.txt the reproducible example with a call to sessionInfo() in the same session (e.g. reprex(session_info = TRUE)) and include the output.

edonnachie avatar Oct 11 '23 08:10 edonnachie