Re: [R] Best practice for copying statistical output from RStudio to Word using Times New Roman
Thanks all! This is an elegant solution! TS From: John Kane Sent: Friday, November 21, 2025 7:58 AM To: Greg Snow <[email protected]> Cc: [email protected]; [email protected] Subject: Re: [R] Best practice for copying statistical output from RStudio to Word using Times New Roman I second Greg's recommendation. Creating a Quarto or Rmarkdown document and doing all text production and analysis in it is much more productive. It definitely makes changes and editing much easier and much less error prone. My personal preference is Quarto but either is several orders of magnitude better than cut and paste. On Fri, 21 Nov 2025 at 10:40, Greg Snow <[email protected] <mailto:[email protected]> > wrote: Here are a couple of things that I have found useful for when you need the final results in MS Word and you want nice formatting. Use a quarto or Rmarkdown document and have knitr/pandoc create the word document instead of copy/paste. The pander package does some nice formatting for many of the statistical routines that pandoc converts into tables. If you need to copy and paste, first copy and paste to MS Excel (and for tables, you can use write.table with file="clipboard" and sep="\t", then just paste in Excel). Then maybe make some adjustments in Excel, then copy from Excel to Word, this will keep things as a table in word, so changing the font will not mess with the alignment. The broom package takes output from lm models and puts them into data frames (tibbles) that can be exported to Excel>Word instead of relying on fixed width fonts and spaces for formatting. On Fri, Nov 21, 2025 at 8:27 AM tgs77m--- via R-help mailto:[email protected]> > wrote: > > The root cause is that RStudio’s output console is hardwired to use > monospaced fonts like Consolas, Courier, or Monaco, which preserve column > alignment. Times New Roman (TTR), being proportional, breaks that alignment > when pasted into Word unless you manually reformat. > > > > > > From: CALUM POLWART mailto:[email protected]> > > Sent: Friday, November 21, 2025 5:02 AM > To: Viechtbauer, Wolfgang (NP) <mailto:[email protected]> > > Cc: Thomas Subia mailto:[email protected]> >; > [email protected] <mailto:[email protected]> > Subject: Re: [R] Best practice for copying statistical output from RStudio to > Word using Times New Roman > > > > As Wolfgang says. > > > > Ctrl-Shift-V and plain text. > > > > That said... I bet some of it looks awful as it's probably spaced for a fixed > width font. > > > > On Fri, 21 Nov 2025, 10:28 Viechtbauer, Wolfgang (NP) via R-help, > mailto:[email protected]> > <mailto:[email protected] <mailto:[email protected]> > > wrote: > > Dear Thomas, > > Just paste without formatting. Then the pasted text will be in the active > font of the Word document. > > Best, > Wolfgang > > > -Original Message- > > From: R-help > <mailto:[email protected]> <mailto:[email protected] > > <mailto:[email protected]> > > On Behalf Of tgs77m--- via R-help > > Sent: Friday, November 21, 2025 07:51 > > To: [email protected] <mailto:[email protected]> > > <mailto:[email protected] <mailto:[email protected]> > > > Subject: [R] Best practice for copying statistical output from RStudio to > > Word > > using Times New Roman > > > > 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 > > __ > [email protected] <mailto:[email protected]> > <mailto:[email protected] <mailto:[email protected]> > mailing list -- > To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide https://www.R-proj
Re: [R] Best practice for copying statistical output from RStudio to Word using Times New Roman
Thomas - Times is a proportionally spaced font, that means e.g. letters like i and m, or numbers like 1 and 0 have different widths, thus the width of text depends on its contents, not just the number of letters. You cannot align such a font on a regular grid - or rather, if you do by moving the individual letters around, the result looks horrible. There are other mono-spaced fonts that have times-like serifs, but they all look more like Courier, rather than Times itself. RStudio and other code environments use monospaced fonts for layout since it is easy to compute, and in many contexts the number of spaces are not just for positioning text but have semantic meaning. Creating tables in Times is certainly possible, and the Coefficients: part of the lm() output is indeed a right-aligned table with one header row and one data row. However, the _only_ way you can align text in a Times font for a table or similar is by using tabs - standard-, left-aligned, centred, right-aligned, or decimal tabs, whatever your layout requires. You can't emulate this by pushing things around with spaces, this can't align precisely when you are using a proportionally spaced font. This leaves you with three options: - use tabs, not spaces for tables (that's the right way); - use a monospaced font, like Courier (and fight with your publisher); - declare these parts to be figures, not text (which they are, since you are looking to control their spatial arrangement. Tabs. You need to use tabs for tables. Cheers, Boris > On Nov 23, 2025, at 03:03, Richard Sherman wrote: > > [You don't often get email from [email protected]. Learn why this is > important at https://aka.ms/LearnAboutSenderIdentification ] > >> 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]] > > __ > [email protected] mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide https://www.r-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. __ [email protected] mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide https://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Best practice for copying statistical output from RStudio to Word using Times New Roman
Hi, I second the recommendation of using a Quarto or Rmarkdown. But sometimes, you have to put your results into a word file. Here’s my solution (see code below). This is a combination of the fmtr package for formatting and the clip command in my package CUFF which is based on the package clipr. For example, say that you want to copy the anova results testing the different diets in the chickwts package and put the contrasts in your word document. You can use the following code. Once executed you can paste the results in your word document in an already formatted table or alternatively as a raw text and then use insert>table>Convert text in table. Hope this helps. Charles-Édouard R code: library(fmtr) library(CUFF) library(emmeans) lm_diets <- lm(weight ~ feed, chickwts) anova(lm_diets) (emm_diets <- emmeans(lm_diets, pairwise ~ feed)) ### Suppose, I want to display the contrasts in word. ### 1. put it in a data.frame and format it the way you want. ### Tips: you can reuse your formats. anova.fmt <- list(estimate = "%.2f", SE = "%.1f", df = "%d", t.ratio = "%.3f", p.value = pv # format as APA formating guide ) emm_diets.df <- data.frame(emm_diets$contrasts) formats(emm_diets.df) <- anova.fmt ### 2. Then you clip to put it in your word document. clip( fdata(emm_diets.df) ) ### for output without col.names see help(clip) for details. clip( fdata(emm_diets.df), col.names = FALSE ) Charles-Édouard Giguère Centre de recherche de l' Institut universitaire en santé mentale de Montréal 7331 rue Hochelaga, Montréal, QC, H1N 3V2 Unité 228, Pavillon Riel, Local RI-226-87 514-251-4015 #3516 [email protected] <mailto:[email protected]> www.centresignature.ca <http://www.centresignature.ca> Le ven. 21 nov. 2025, 10 h 58 a.m., John Kane < <mailto:[email protected]> [email protected]> a écrit : I second Greg's recommendation. Creating a Quarto or Rmarkdown document and doing all text production and analysis in it is much more productive. It definitely makes changes and editing much easier and much less error prone. My personal preference is Quarto but either is several orders of magnitude better than cut and paste. On Fri, 21 Nov 2025 at 10:40, Greg Snow < <mailto:[email protected]> [email protected]> wrote: > Here are a couple of things that I have found useful for when you need > the final results in MS Word and you want nice formatting. > > Use a quarto or Rmarkdown document and have knitr/pandoc create the > word document instead of copy/paste. The pander package does some > nice formatting for many of the statistical routines that pandoc > converts into tables. > > If you need to copy and paste, first copy and paste to MS Excel (and > for tables, you can use write.table with file="clipboard" and > sep="\t", then just paste in Excel). Then maybe make some adjustments > in Excel, then copy from Excel to Word, this will keep things as a > table in word, so changing the font will not mess with the alignment. > > The broom package takes output from lm models and puts them into data > frames (tibbles) that can be exported to Excel>Word instead of relying > on fixed width fonts and spaces for formatting. > > > On Fri, Nov 21, 2025 at 8:27 AM tgs77m--- via R-help > < <mailto:[email protected]> [email protected]> wrote: > > > > The root cause is that RStudio’s output console is hardwired to use > monospaced fonts like Consolas, Courier, or Monaco, which preserve column > alignment. Times New Roman (TTR), being proportional, breaks that alignment > when pasted into Word unless you manually reformat. > > > > > > > > > > > > From: CALUM POLWART < <mailto:[email protected]> [email protected]> > > Sent: Friday, November 21, 2025 5:02 AM > > To: Viechtbauer, Wolfgang (NP) < > <mailto:[email protected]> > [email protected]> > > Cc: Thomas Subia < <mailto:[email protected]> [email protected]>; > > <mailto:[email protected]> [email protected] > > Subject: Re: [R] Best practice for copying statistical output from > RStudio to Word using Times New Roman > > > > > > > > As Wolfgang says. > > > > > > > > Ctrl-Shift-V and plain text. > > > > > > > > That said... I bet some of it looks awful as it's probably spaced for a > fixed width font. > > > > > > > > On Fri, 21
Re: [R] Best practice for copying statistical output from RStudio to Word using Times New Roman
I second Greg's recommendation. Creating a Quarto or Rmarkdown document and doing all text production and analysis in it is much more productive. It definitely makes changes and editing much easier and much less error prone. My personal preference is Quarto but either is several orders of magnitude better than cut and paste. On Fri, 21 Nov 2025 at 10:40, Greg Snow <[email protected]> wrote: > Here are a couple of things that I have found useful for when you need > the final results in MS Word and you want nice formatting. > > Use a quarto or Rmarkdown document and have knitr/pandoc create the > word document instead of copy/paste. The pander package does some > nice formatting for many of the statistical routines that pandoc > converts into tables. > > If you need to copy and paste, first copy and paste to MS Excel (and > for tables, you can use write.table with file="clipboard" and > sep="\t", then just paste in Excel). Then maybe make some adjustments > in Excel, then copy from Excel to Word, this will keep things as a > table in word, so changing the font will not mess with the alignment. > > The broom package takes output from lm models and puts them into data > frames (tibbles) that can be exported to Excel>Word instead of relying > on fixed width fonts and spaces for formatting. > > > On Fri, Nov 21, 2025 at 8:27 AM tgs77m--- via R-help > wrote: > > > > The root cause is that RStudio’s output console is hardwired to use > monospaced fonts like Consolas, Courier, or Monaco, which preserve column > alignment. Times New Roman (TTR), being proportional, breaks that alignment > when pasted into Word unless you manually reformat. > > > > > > > > > > > > From: CALUM POLWART > > Sent: Friday, November 21, 2025 5:02 AM > > To: Viechtbauer, Wolfgang (NP) < > [email protected]> > > Cc: Thomas Subia ; [email protected] > > Subject: Re: [R] Best practice for copying statistical output from > RStudio to Word using Times New Roman > > > > > > > > As Wolfgang says. > > > > > > > > Ctrl-Shift-V and plain text. > > > > > > > > That said... I bet some of it looks awful as it's probably spaced for a > fixed width font. > > > > > > > > On Fri, 21 Nov 2025, 10:28 Viechtbauer, Wolfgang (NP) via R-help, < > [email protected] <mailto:[email protected]> > wrote: > > > > Dear Thomas, > > > > Just paste without formatting. Then the pasted text will be in the > active font of the Word document. > > > > Best, > > Wolfgang > > > > > -Original Message- > > > From: R-help [email protected]> > On Behalf Of tgs77m--- via R-help > > > Sent: Friday, November 21, 2025 07:51 > > > To: [email protected] <mailto:[email protected]> > > > Subject: [R] Best practice for copying statistical output from RStudio > to Word > > > using Times New Roman > > > > > > 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 > > > > __ > > [email protected] <mailto:[email protected]> mailing list -- To > UNSUBSCRIBE and more, see > > https://stat.ethz.ch/mailman/listinfo/r-help > > PLEASE do read the posting guide > https://www.R-project.org/posting-guide.html > > and provide commented, minimal, self-contained, reproducible code. > > > > > > [[alternative HTML version deleted]] > > > > __ > > [email protected] mailing list -- To UNSUBSCRIBE and more, see > > https://stat.ethz.ch/mailman/listinfo/r-he
Re: [R] Best practice for copying statistical output from RStudio to Word using Times New Roman
Here are a couple of things that I have found useful for when you need the final results in MS Word and you want nice formatting. Use a quarto or Rmarkdown document and have knitr/pandoc create the word document instead of copy/paste. The pander package does some nice formatting for many of the statistical routines that pandoc converts into tables. If you need to copy and paste, first copy and paste to MS Excel (and for tables, you can use write.table with file="clipboard" and sep="\t", then just paste in Excel). Then maybe make some adjustments in Excel, then copy from Excel to Word, this will keep things as a table in word, so changing the font will not mess with the alignment. The broom package takes output from lm models and puts them into data frames (tibbles) that can be exported to Excel>Word instead of relying on fixed width fonts and spaces for formatting. On Fri, Nov 21, 2025 at 8:27 AM tgs77m--- via R-help wrote: > > The root cause is that RStudio’s output console is hardwired to use > monospaced fonts like Consolas, Courier, or Monaco, which preserve column > alignment. Times New Roman (TTR), being proportional, breaks that alignment > when pasted into Word unless you manually reformat. > > > > > > From: CALUM POLWART > Sent: Friday, November 21, 2025 5:02 AM > To: Viechtbauer, Wolfgang (NP) > Cc: Thomas Subia ; [email protected] > Subject: Re: [R] Best practice for copying statistical output from RStudio to > Word using Times New Roman > > > > As Wolfgang says. > > > > Ctrl-Shift-V and plain text. > > > > That said... I bet some of it looks awful as it's probably spaced for a fixed > width font. > > > > On Fri, 21 Nov 2025, 10:28 Viechtbauer, Wolfgang (NP) via R-help, > mailto:[email protected]> > wrote: > > Dear Thomas, > > Just paste without formatting. Then the pasted text will be in the active > font of the Word document. > > Best, > Wolfgang > > > -Original Message- > > From: R-help > <mailto:[email protected]> > On Behalf Of tgs77m--- via R-help > > Sent: Friday, November 21, 2025 07:51 > > To: [email protected] <mailto:[email protected]> > > Subject: [R] Best practice for copying statistical output from RStudio to > > Word > > using Times New Roman > > > > 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 > > __ > [email protected] <mailto:[email protected]> mailing list -- To > UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide https://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > > > [[alternative HTML version deleted]] > > __ > [email protected] mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide https://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Gregory (Greg) L. Snow Ph.D. [email protected] __ [email protected] mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide https://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Best practice for copying statistical output from RStudio to Word using Times New Roman
The root cause is that RStudio’s output console is hardwired to use monospaced fonts like Consolas, Courier, or Monaco, which preserve column alignment. Times New Roman (TTR), being proportional, breaks that alignment when pasted into Word unless you manually reformat. From: CALUM POLWART Sent: Friday, November 21, 2025 5:02 AM To: Viechtbauer, Wolfgang (NP) Cc: Thomas Subia ; [email protected] Subject: Re: [R] Best practice for copying statistical output from RStudio to Word using Times New Roman As Wolfgang says. Ctrl-Shift-V and plain text. That said... I bet some of it looks awful as it's probably spaced for a fixed width font. On Fri, 21 Nov 2025, 10:28 Viechtbauer, Wolfgang (NP) via R-help, mailto:[email protected]> > wrote: Dear Thomas, Just paste without formatting. Then the pasted text will be in the active font of the Word document. Best, Wolfgang > -Original Message- > From: R-help <mailto:[email protected]> > On Behalf Of tgs77m--- via R-help > Sent: Friday, November 21, 2025 07:51 > To: [email protected] <mailto:[email protected]> > Subject: [R] Best practice for copying statistical output from RStudio to Word > using Times New Roman > > 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 __ [email protected] <mailto:[email protected]> mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide https://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. [[alternative HTML version deleted]] __ [email protected] mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide https://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Best practice for copying statistical output from RStudio to Word using Times New Roman
This question has already been answered, but I thought I would share
something related to it that others may find useful. What if you want
the font used in figures and graphs to be Times New Roman? I don't know
if this is considered best ppractice, but I discovered you can get all
the text on figures and plots in R's standard graphics system to be
Times New Roman by doing the following. This only works on Windows.
Use WindowsFonts()
to get a list of the windows fonts available to R on the windows system.
The serif font is likely to be Times New Roman. Take a note of its name
in the output from windowsFonts().
For example, on my system it is "TT Times New Roman".
Then include the following code before performing any plotting.
windowsFonts(tnr=windowsFont("TT Times New Roman"))
This sets up tnr as a font family name that refers to Times New Roman.
You don't have to use tnr; that's just the name I chose.
Then, before plotting, set graphics parameter family="tnr". This can
either be done with par or in the function call that opens the graphics
device. For example,
png("figure.png", width=15.5, height=17.5, units="cm", res=72)
par(family="tnr")
...
dev.off()
or
png("figure.png", width=15.5, height=17.5, units="cm", res=72,
family="tnr")
...
dev.off()
Hth,
Andrew.
On 21/11/2025 3:51, tgs77m--- via R-help wrote:
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
__
[email protected] mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide https://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
--
This email has been checked for viruses by Avast antivirus software.
www.avast.com
__
[email protected] mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide https://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Re: [R] Best practice for copying statistical output from RStudio to Word using Times New Roman
As Wolfgang says. Ctrl-Shift-V and plain text. That said... I bet some of it looks awful as it's probably spaced for a fixed width font. On Fri, 21 Nov 2025, 10:28 Viechtbauer, Wolfgang (NP) via R-help, < [email protected]> wrote: > Dear Thomas, > > Just paste without formatting. Then the pasted text will be in the active > font of the Word document. > > Best, > Wolfgang > > > -Original Message- > > From: R-help On Behalf Of tgs77m--- via > R-help > > Sent: Friday, November 21, 2025 07:51 > > To: [email protected] > > Subject: [R] Best practice for copying statistical output from RStudio > to Word > > using Times New Roman > > > > 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 > > __ > [email protected] mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > https://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > [[alternative HTML version deleted]] __ [email protected] mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide https://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Best practice for copying statistical output from RStudio to Word using Times New Roman
Dear Thomas, Just paste without formatting. Then the pasted text will be in the active font of the Word document. Best, Wolfgang > -Original Message- > From: R-help On Behalf Of tgs77m--- via R-help > Sent: Friday, November 21, 2025 07:51 > To: [email protected] > Subject: [R] Best practice for copying statistical output from RStudio to Word > using Times New Roman > > 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 __ [email protected] mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide https://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

