Relative Content

Tag Archive for pdfconsoleoutputexportrstudio

How to export RStudio console output directly to a pdf file

I’m running GLMs in RStudio and am trying to get the output of my Tukey’s post-hoc test directly into a PFD file, and not into the console.
pairs(emmeans(M50, ~AgeClass + Month, component="zi"),type="response", bias.adjust=F, adj="Tukey", infer=(TRUE))
When it appears in the console, I cannot read all the lines. I tried fixing that with this function rstudioapi::writeRStudioPreference("console_max_lines", 100000000) and changing the console properties etc., but none of that is working.
I’ve tried exporting it into a PDF using pdf("models.pdf") but I keep getting an empty file.

Output model result directly to a pdf file

I’m running GLMs in RStudio and am trying to get the output of my Tuckey’s post-hoc test directly into a PFD file, and not into the console.
pairs(emmeans(M50, ~AgeClass + Month, component="zi"),type="response", bias.adjust=F, adj="Tukey", infer=(TRUE))
When it appears in the console, I cannot read all the lines. I tried fixing that with this function rstudioapi::writeRStudioPreference("console_max_lines", 100000000) and changing the console properties etc., but none of that is working.
I’ve tried exporting it into a PDF using pdf("models.pdf") but I keep getting an empty file.