如何使用Emacs ESS模式与R markdown? [英] How can I use Emacs ESS mode with R markdown?

查看:404
本文介绍了如何使用Emacs ESS模式与R markdown?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法配置Emacs,以便识别(并允许执行)R markdown(.Rmd)文件中的R代码块,类似于它识别.Rnw(Sweave)或.org(org)中的代码块的方式-mode)文件?

解决方案

polymode ,它允许/将允许您使用R块(用于处理 knitr )进行写入。



设置polymode + rmarkdown的说明在 README



尚未完成,但正在进行中。另请参阅本帮助邮件列表的讨论( gmane archive | 邮件列表存档






更新:polyMode已经在MELPA上发布,通过使用emacs的现有包机制简化了安装过程。请参阅 ESS邮件列表中的公告


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?

解决方案

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.

这篇关于如何使用Emacs ESS模式与R markdown?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆