Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I use Emacs ESS mode with R markdown?

Is there a way to configure Emacs so that it recognizes (and allows execution of) R code chunks within R markdown (.Rmd) files similar to the way it recognizes code chunks in .Rnw (Sweave) or .org (org-mode) files?

like image 897
David LeBauer Avatar asked Apr 23 '13 14:04

David LeBauer


Video Answer


1 Answers

polymode is being developed which does/will allow you to write markdown with R chunks (for processing with knitr).

Instructions for setting up polymode+rmarkdown are in the README

It is not yet done, but is progressing. See also this discussion on the ess-help mailing list (gmane archive|mailing list archive)


Update: polymode has been released on MELPA, simplifying the installation process by using emacs' existing package mechanism. See the announcement on the ESS mailing list here.

like image 50
Brian Diggs Avatar answered Oct 13 '22 11:10

Brian Diggs