how can I shamelessly copy-paste the console output to word while keeping colors?

tibble

#1

Please dont hit me OK? :slight_smile:

I would like to know what is the most efficient way to copy paste the output from my console from R Studio to Word. Of course, I would like to keep all the nice formatting features of the colored tibble columns, etc.

Is that even possible?
Thanks!


#2

I don't think a simple copy paste would manage to keep colors.

There could be several possible path to achieve what you want:

  • Copy paste a Rmd document and generate a word with Rmarkdown, syntax highlighting is included. Not sure the one from crayon :package: it kept though... (the one for tibble)
  • as you are ready to copy paste code, a simple screen capture would work.
  • You could give a try to the new cabornate CRAN package. It is awesome to create beautiful image of source code.

#3

ha.. interesting. thanks!


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.