In a certain loop I am trying to use tab_model and save with it all the outcomes:
keys<-c("a","b","c")
for (i in keys) {
formula <- as.formula(paste0("int", "~","int2", "+","int3"))
x2 <- lme(formula, data = df, random = ~ 1 | int4, na.action = na.omit)
tab_model(x2, file = paste0('name_', i,"_toshow.html"))
}
When I do that it runs and do not download the files (it works fine when I don't do that in a loop)