Can I generate latex code from R and then render it in the same document? #7539
Unanswered
mattysimonson
asked this question in
Q&A
Replies: 1 comment 1 reply
-
The issue is that Also documented online, you need to tell ---
format: pdf
---
```{r}
#| output: asis
library(xtable)
data(tli)
xtable(tli[1:10, ])
``` |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Suppose I have r code that generates a table in latex such as
How can I get this table (rather than the code) to show up in my Quarto document? Do I have to save it as a separate .tex file and then load it back in?
Beta Was this translation helpful? Give feedback.
All reactions