I'd like to construct a table within a for loop, but the html output shows raw html as opposed to rendered html. I'm thinking that maybe print()
is the issue, but if I don't use print()
, then nothing gets included in the html output.
Here's my code:
library(gt)
for (i in 1:2) {
exibble %>% gt() %>% print()
}
And here's what the output looks like: