Using vtale with knitr and kable yealds strange results

I would like to display a vtable (created using the library vtable) as a normal kable table in RMarkdown (I am creating a PDF with LaTex). I understand that vtable can give back a knitr kable and therefore it can be used as an input for kable_styling so i can tinker with the latex options. This seems to work up to a certain point.

Here is the code so far:


vtable(heart_faliure_data, labels = label) %>% 
kable_styling(latex_options = c("striped", "scale_down"))

But the resulting table looks like this: enter image description here

Why are the latex command displayed at all?

I am thankful of any help you can give me.

Greetings!

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.