From: John Hendy <jw.hendy@gmail.com>
To: Eric Schulte <eric.schulte@gmx.com>
Cc: Achim Gratz <Stromeko@nexgo.de>,
nicholas.dokos@hp.com, emacs-orgmode@gnu.org
Subject: Re: R and babel on Windows problem
Date: Fri, 6 Jul 2012 17:05:58 -0500 [thread overview]
Message-ID: <CA+M2ft_x7RYEnwTfqPDKtTjvLig4KnMsWqYF=kkPz6ufWD4rNQ@mail.gmail.com> (raw)
In-Reply-To: <87ipe091h7.fsf@gmx.com>
On Fri, Jul 6, 2012 at 1:41 PM, Eric Schulte <eric.schulte@gmx.com> wrote:
>>
>> Update: I'm on 64bit and just now realized there's another set of R
>> cmds in ../R-2.15.0/bin/x64/. This is what I needed.
>>
>> Now my problem is that using R along doesn't produce any output. With
>> the above modification, I get:
>>
>> ,---
>> | Fatal error: you must specify '--save', '--no-save' or '--vanilla'
>> `---
>>
>> I'm quite close! If I add --no-save, I get exported results but they
>> include all of the R preamble text from when it starts. Here's my
>> block for reference:
>>
>> #+begin_src R :results output org :exports results
>>
>> x <- c(1:10)
>> summary(x)
>>
>> #+end_src
>>
>
> The default value for org-babel-R-command is "R --slave --no-save", so
> maybe adding the "--slave" option to your command will remove the R
> preamble text.
Yes! It's now working. I checked out the output of just runing "R"
from the command line in Windows, but did not see the --slave option.
Adding these to my .emacs setup of =org-babel-R-command= has worked
and it is now exporting results as expected.
Thanks so much -- for the times I need to use Windows at work, it's
going to be a lot easier to work with exportable/executable code
blocks in org-mode.
Thanks again for the persistence,
John
>
> As for your path problems, the "~" looks like a likely culprit. The
> command is passed to an equivalent of the `shell-command-on-region'
> function, which then uses a shell to run the command. Maybe the shell
> it uses can't handle the tilde?
>
> Best,
>
> p.s., I'm jumping into this thread part way through and didn't read all
> of the back-log, so I apologize if I'm repeating previous advice.
>
> --
> Eric Schulte
> http://cs.unm.edu/~eschulte
next prev parent reply other threads:[~2012-07-06 22:06 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-28 17:46 R and babel on Windows problem John Hendy
2012-06-29 14:59 ` Alexander Vorobiev
2012-06-29 15:24 ` John Hendy
2012-06-29 17:12 ` Alexander Vorobiev
2012-06-29 18:26 ` Achim Gratz
2012-06-29 19:31 ` John Hendy
2012-06-29 19:37 ` Nick Dokos
2012-06-29 20:00 ` John Hendy
2012-06-29 20:16 ` Nick Dokos
2012-07-02 20:15 ` John Hendy
2012-07-02 21:26 ` Nick Dokos
2012-07-02 21:47 ` John Hendy
2012-07-02 22:15 ` Nick Dokos
2012-07-02 22:16 ` John Hendy
2012-07-06 16:58 ` John Hendy
2012-07-06 17:12 ` Nick Dokos
2012-07-06 17:46 ` John Hendy
2012-07-06 18:41 ` Eric Schulte
2012-07-06 22:05 ` John Hendy [this message]
2012-07-06 18:45 ` Nick Dokos
2012-07-06 22:08 ` John Hendy
2012-07-06 22:14 ` John Hendy
2012-07-07 1:02 ` Eric Schulte
2012-07-07 1:48 ` Nick Dokos
2012-07-16 0:42 ` John Hendy
2012-06-30 5:13 ` Achim Gratz
2012-06-30 13:15 ` Eric Schulte
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='CA+M2ft_x7RYEnwTfqPDKtTjvLig4KnMsWqYF=kkPz6ufWD4rNQ@mail.gmail.com' \
--to=jw.hendy@gmail.com \
--cc=Stromeko@nexgo.de \
--cc=emacs-orgmode@gnu.org \
--cc=eric.schulte@gmx.com \
--cc=nicholas.dokos@hp.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).