emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Erik Iverson <erikriverson@gmail.com>
To: Ista Zahn <istazahn@gmail.com>
Cc: emacs-orgmode Mailinglist <emacs-orgmode@gnu.org>,
	Shiyuan <gshy2014@gmail.com>
Subject: Re: Babel-R vs. ESS
Date: Wed, 25 Jun 2014 09:44:02 -0500	[thread overview]
Message-ID: <CAKzGw13mC6EfNZKG=bMsF+iQXagJ+GWJRWZYWbdLz3yWcw7Z9Q@mail.gmail.com> (raw)
In-Reply-To: <CA+vqiLGTEhAZVmsWqg74DqR9Hq9r2yD5mNkTRg4RKMrXKbrTxA@mail.gmail.com>

+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 <istazahn@gmail.com> wrote:
> Hi Shiyuan,
>
> On Wed, Jun 25, 2014 at 3:08 AM, Shiyuan <gshy2014@gmail.com> 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
>

  reply	other threads:[~2014-06-25 14:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-25  7:08 Babel-R vs. ESS Shiyuan
2014-06-25  9:33 ` Thorsten Jolitz
2014-06-25 14:31 ` Ista Zahn
2014-06-25 14:44   ` Erik Iverson [this message]
2014-06-25 17:39 ` Joost Helberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAKzGw13mC6EfNZKG=bMsF+iQXagJ+GWJRWZYWbdLz3yWcw7Z9Q@mail.gmail.com' \
    --to=erikriverson@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=gshy2014@gmail.com \
    --cc=istazahn@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).