gt table not printing inside loop in Rmd document

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() 
> }
> ```

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