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

前端 未结 7 1906
生来不讨喜
生来不讨喜 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:44

    I agree with zeehio that using Knitr is probably the best option. But another way is to use the Pretty R tool and the "open document text" steps here. Basically just copy and paste your code into pretty R, and copy and paste the output (not the html) into the open document.

提交回复
热议问题