How can I use Emacs ESS mode with R markdown?

前端 未结 3 1321
既然无缘
既然无缘 2021-01-30 04:59

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 .R

3条回答
  •  逝去的感伤
    2021-01-30 05:49

    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.

提交回复
热议问题