Anyone know of a way to convert rmarkdown (rmd) files to orgmode?
im preparing a R course and lots of cool examples in R are in rmd format so it could be very useful to me. I tried via pandoc but results were not great
Anyone know of a way to convert rmarkdown (rmd) files to orgmode?
im preparing a R course and lots of cool examples in R are in rmd format so it could be very useful to me. I tried via pandoc but results were not great
Ok so for anyone interested here is the solution i found
in R (via the GUI or through R -e command line), first convert the Rmd files to md files:
require(knitr) # required for knitting from rmd to md
require(markdown) # required for md to html
knit('test.rmd', 'test.md') # creates md file
then use pandoc to convert the md files to org:
pandoc -o test.org test.md
this gives an almost 1:1 org file