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

前端 未结 7 1892
生来不讨喜
生来不讨喜 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 18:03

    Assuming you have internet access

    1. Copy and paste to gist.gisthub.com
    2. Select 'R' as the language - this should provide colours
    3. Hit create (secret or public) gist
    4. Copy and paste from the gist to your word processor.

    Compared with the notepad++ solution:

    • An online backup to your code, with a recording of the time when you clipped it.
    • You don't have to install any other software, useful if you're a student using a public computer.
    0 讨论(0)
提交回复
热议问题