How to preserve formatting from rstudio when copy/pasting to Word?

前端 未结 7 1893
生来不讨喜
生来不讨喜 2021-01-30 17:11

New to R, Rstudio, and SO -- my apologies in advance for any faux pas.

I want to reproduce my code in Word 2010 for a homework assignment. The scripts were written in r

7条回答
  •  后悔当初
    2021-01-30 17:43

    After you copy from the Rstudio Console window and paste into a Word document, you need to highlight all the the just copied text and change the font into Courier New. This will give you the same spacing and lineup as you had in the Rstudio Console window.

提交回复
热议问题