From mboxrd@z Thu Jan 1 00:00:00 1970 From: Erik Iverson Subject: Re: Babel-R vs. ESS Date: Wed, 25 Jun 2014 09:44:02 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59124) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzoR8-0005Sd-6Q for emacs-orgmode@gnu.org; Wed, 25 Jun 2014 10:44:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WzoR7-0005ja-Cb for emacs-orgmode@gnu.org; Wed, 25 Jun 2014 10:44:34 -0400 Received: from mail-qc0-x234.google.com ([2607:f8b0:400d:c01::234]:65077) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzoR7-0005jS-8e for emacs-orgmode@gnu.org; Wed, 25 Jun 2014 10:44:33 -0400 Received: by mail-qc0-f180.google.com with SMTP id r5so1773962qcx.25 for ; Wed, 25 Jun 2014 07:44:32 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Ista Zahn Cc: emacs-orgmode Mailinglist , Shiyuan +1 for Ista. Use both. I tend to write a lot of R code for reading in data, and then merging it with other sources and cleaning it. For my purposes, I usually do those activities in a .R file (so using ESS in Emacs), and output a 'tidy' data.frame ready for analysis. Then I might use org-mode to write a report using the data prepared in the .R script(s). Related, if you haven't checked out knitr, you might look at that too. It allows you to create reports in markdown and embed R code, similar to org-mode. Somewhere I have support for this in ESS, but it's been a while since I looked at it. Slidify is another cool package, using markdown to create HTML slides. On Wed, Jun 25, 2014 at 9:31 AM, Ista Zahn wrote: > Hi Shiyuan, > > On Wed, Jun 25, 2014 at 3:08 AM, Shiyuan wrote: >> Hi all, >> I am learning R and use Emacs to work with R. I googled around and I >> found two options: ESS and Org-R/Org-Babel. > > Org-Babel and ESS are not really alternatives; in fact the complement > each other nicely. Org gives you a lightweight markup language, and a > way to embed source code blocks. You can edit/evaluate/test R source > code blocks using ESS. > >> Babel speaks multiple languages( Any languages?-if we write some sort of >> parser, which I assume is not terribly difficult under Babel?). >> >> But if R is the primary language I would use, which option (Babel-R vs ESS) >> is more advisable? I do want a nice integration of graphics/source code into >> a paper/slides. > > Basically if you're using R in emacs you want to be using ESS. You can > also use org-mode to easily create reports, slides, etc. with embedded > R code. > > > Best, > Ista >> >> Any suggestions/options are appreciated. >> >> Shiyuan >