sumtable() produces LaTeX error: Missing \endgroup inserted
rossellhayes opened this issue · comments
Using sumtable()
to produce LaTeX output gives an error when knitting:
Minimal example:
---
title: "Untitled"
author: "Alexander Rossell Hayes"
date: "2/16/2021"
output: pdf_document
---
```{r include = FALSE}
library(knitr)
library(kableExtra)
library(vtable)
```
```{r results = "asis"}
sumtable(mtcars, out = "latex")
```
Knitting this document produces the following error:
! Missing \endgroup inserted.
<inserted text>
\endgroup
l.158 }
The same error occurs when manually copying and pasting the LaTeX output of sumtable()
.
Hmm! I will take a look at this. Thanks for the Issue.
On Feb 16, 2021 6:11 PM, Alex Rossell Hayes <notifications@github.com> wrote:
Using sumtable() to produce LaTeX output gives an error when knitting:
Minimal example:
…---
title: "Untitled"
author: "Alexander Rossell Hayes"
date: "2/16/2021"
output: pdf_document
---
```{r include = FALSE}
library(knitr)
library(kableExtra)
library(vtable)
```
```{r results = "asis"}
sumtable(mtcars, out = "latex")
```
Knitting this document produces the following error:
! Missing \endgroup inserted.
<inserted text>
\endgroup
l.158 }
The same error occurs when manually copying and pasting the LaTeX output of sumtable().
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FNickCH-K%2Fvtable%2Fissues%2F11&data=04%7C01%7Cnhuntington-klein%40seattleu.edu%7C6ce92db9b74344dff69108d8d2e9641c%7Cbc10e052b01c48499967ee7ec74fc9d8%7C0%7C0%7C637491247144803576%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=Ka24v8OcJOAW5tmvIQm46WxzmUrsBTvQzVa0dYKJprA%3D&reserved=0>, or unsubscribe<https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAKV5TDMQNVEJLBUQG2C3N53S7MQWPANCNFSM4XXQCWJA&data=04%7C01%7Cnhuntington-klein%40seattleu.edu%7C6ce92db9b74344dff69108d8d2e9641c%7Cbc10e052b01c48499967ee7ec74fc9d8%7C0%7C0%7C637491247144803576%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=uDZktY9ULp5HvSD%2BEZxWVgBEc2c9LYsvqOPdTKVqmB8%3D&reserved=0>.
Thank you!
In the meantime, using out = "kable"
does knit to PDF successfully. That takes care of my use case, but still may be a problem for someone who needs real LaTeX code.
That touches on another problem already on my list, which is that it should be defaulting to kable inside of Rmarkdown anyway but that feature has always been a bit touchy.
On Feb 16, 2021 6:25 PM, Alex Rossell Hayes <notifications@github.com> wrote:
Thank you!
In the meantime, using out = "kable" does knit to PDF successfully. That takes care of my use case, but still may be a problem for someone who needs real LaTeX code.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FNickCH-K%2Fvtable%2Fissues%2F11%23issuecomment-780251987&data=04%7C01%7Cnhuntington-klein%40seattleu.edu%7C10502af9833f4ac0bd8508d8d2eb44e9%7Cbc10e052b01c48499967ee7ec74fc9d8%7C0%7C0%7C637491255200512177%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=MHyijakZ6pKiEGNYOo18SSMU%2Br1dz2bCRZYnuPlTN%2BE%3D&reserved=0>, or unsubscribe<https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAKV5TDKFJGLPHJ7Z5BTYTV3S7MSI5ANCNFSM4XXQCWJA&data=04%7C01%7Cnhuntington-klein%40seattleu.edu%7C10502af9833f4ac0bd8508d8d2eb44e9%7Cbc10e052b01c48499967ee7ec74fc9d8%7C0%7C0%7C637491255200522171%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=t%2BaUrylxH82WKAvUHy8dINu03Y1iF5A30MhDYRC4KeU%3D&reserved=0>.