[R] Best practice for copying statistical output from RStudio to Word using Times New Roman

Richard Sherman r@@@pdx @end|ng |rom gm@||@com
Sun Nov 23 08:03:08 CET 2025


> Colleagues
> 
> I am writing an article using Microsoft Word for a journal that requires
> Times New Roman for all text (including tables and statistical outputs).
> However, copying console output from RStudio (e.g., summary(lm())) into Word
> retains the RStudio monospace font, and Word does not automatically convert
> it to Times New Roman. Manually restyling each pasted block is
> time-consuming and error-prone.
> 
> s there a recommended workflow for preserving proper alignment while
> achieving Times New Roman text formatting when transferring statistical
> results from RStudio into Word?
> 
> System:
> Windows 11
> R 4.5.1
> RStudio 2024.12.0+
> 
> Thanks for any guidance or best practices.
> 
> Best regards,
> Thomas Subia
> 

Rmarkdown, with this in the YAML:

mainfont: Times New Roman

It might be necessary to specify

output: 
  pdf_document:
    latex_engine: xelatex
mainfont: Times New Roman 

If necessary one could specify 

output:
  word_document

but I’ve had less success with that (in placing figures, for example).	

In graphs and so on, it might be necessary to specify the font in the code that creates them.

-Richard

---
Richard Sherman
Associate Professor of International Relations and Political Science
Asian University for Women
https://asian-university.org


	[[alternative HTML version deleted]]



More information about the R-help mailing list