Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Word to R Markdown Conversion

I have received a file stored in Microsoft Word that includes formatted words (italics, bold). I would like to do some work with the file (extracting sections, inserting words, etc.) and was planning to do this work with R Markdown. I need to keep the formatting (italics, bold) from Word during this conversion. I know I can convert from Markdown to Word, but is the reverse conversion from Word to Markdown also possible? If not, does anyone have any suggestions of how to bring Word into Markdown (relatively) painlessly while maintaining the italics and bold formatting?

like image 342
Megan E. Avatar asked Aug 26 '26 15:08

Megan E.


1 Answers

You could use first pandoc, then RStudio.

  1. In pandoc, pandoc -o output.md originFile.docx. In which, your output is a markdown from a Word.
  2. Open your RStudio, you can choose your type file at the bottom of the console, whether you select "markdown" or "Rmarkdown". You will be able to change your markdown file.

Also there is Writeage, from convert markdown to word. This is a pulgin in Word

like image 118
Jesús Alberto Urrutia Camacho Avatar answered Aug 28 '26 06:08

Jesús Alberto Urrutia Camacho



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!