[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] convert rmarkdown (rmd) files to orgmode?

From: Xebar Saram
Subject: Re: [O] convert rmarkdown (rmd) files to orgmode?
Date: Wed, 20 Jul 2016 14:15:16 +0300

thx phil

the Rmd format is actually quite different than md so that conversion didnt go well

i ended up doing a 2 step conversion:

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



On Wed, Jul 20, 2016 at 1:08 PM, Philip Hudson <address@hidden> wrote:
pandoc -f markdown -t org myfile.rmd

On 20 July 2016 at 05:28, Xebar Saram <address@hidden> wrote:
> Hi all
> 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
> best
> Z

Phil Hudson                   http://hudson-it.ddns.net
@UWascalWabbit                 PGP/GnuPG ID: 0x887DCA63

reply via email to

[Prev in Thread] Current Thread [Next in Thread]