Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New R-Studio version 0.98.932 deletes .md file - how to prevent?

after upgrading to v0.98.932, when knitting .Rmd files it produces .md, then .html, but then deletes .md. and I need to keep it to upload to GitHub. Where would the options be to keep the .md files when knitting hmtl from .Rmd?

like image 802
andrey Avatar asked Jun 18 '14 18:06

andrey


2 Answers

The question is answered here. Three ways to do this:

  1. use the argument keep_md = TRUE in html_document()

  2. call rmarkdown::render() with clean = FALSE

  3. Use md_document as one of your output formats

like image 193
andrey Avatar answered Oct 02 '22 09:10

andrey


Or you can just indicate in the settings "Keep markdown source file".

This can be done by clicking on the Settings icon that is positioned next to "Knitr HTML". Then you go to Advanced - by default "Keep markdown source file" is unchecked. Just place a checkmark and you are all done!

like image 27
Svetla Avatar answered Oct 02 '22 11:10

Svetla