Rmarkdown printing many many files

47 Views Asked by At

I have this simple code that tries to print many tab_model objects in a single html file. For some reason, each model gets its own html file and the main file remains empty..

Any thoughts?

{r printing, echo=FALSE, cache=FALSE, results='asis'}

library(sjPlot)

for (i in 1:3) {
  flights <- nycflights13::flights
  flights <- dplyr::sample_n (flights, 500)
  m1 <- glm(formula = arr_delay ~ dep_time + origin+ air_time+ distance , data = 
  flights)
  print(tab_model(m1))
}
0

There are 0 best solutions below