I am trying to output a R Markdown file that contains a gt
table inside a loop. If I put the code below into a Rmd file and press "Knit" in RStudio I will see two tables in the resulting HTML file, but if I do rmarkdown::render("filename.Rmd")
I will not see the tables in the HTML file.
> ```{r, echo=FALSE, results="asis"}
> library(gt)
> for (i in 1:2) {
> exibble %>% gt() %>% print()
> }
> ```