I can't seem to figure out how to save the gtsummary tbl_summary and tbl_regression tables as tiffs. The code saves it in the right place and produces a tiff file, but when I open the file it is just a white, blank screen. Here's the code:
tiff(filename = "C:\\Users\\name\\Desktop\\folder\\tiff300.tiff",
width = 5, height = 5, units = "in", res = 700)
multinom(group ~ time, data = dataset) %>%
tbl_regression(exponentiate = TRUE,pvalue_fun = ~style_pvalue(.x, digits = 3)) %>%
modify_header(label = "**Variable**") %>%
bold_labels() %>%
bold_p(t = 0.05) %>%
modify_caption("**Table 3. Multinomial Regression**")
dev.off()