From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: R and babel on Windows problem Date: Fri, 6 Jul 2012 17:05:58 -0500 Message-ID: References: <87ipea3rfq.fsf@Rainer.invalid> <18442.1340998640@alphaville> <18840.1341001001@alphaville> <31262.1341264369@alphaville> <21447.1341594758@alphaville> <87ipe091h7.fsf@gmx.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:52175) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SnGf5-0001IF-Aj for emacs-orgmode@gnu.org; Fri, 06 Jul 2012 18:06:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SnGf3-0002DO-8G for emacs-orgmode@gnu.org; Fri, 06 Jul 2012 18:06:02 -0400 Received: from mail-bk0-f41.google.com ([209.85.214.41]:63991) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SnGf2-0002DD-Uw for emacs-orgmode@gnu.org; Fri, 06 Jul 2012 18:06:01 -0400 Received: by bkcjc3 with SMTP id jc3so6399797bkc.0 for ; Fri, 06 Jul 2012 15:05:58 -0700 (PDT) In-Reply-To: <87ipe091h7.fsf@gmx.com> 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: Eric Schulte Cc: Achim Gratz , nicholas.dokos@hp.com, emacs-orgmode@gnu.org On Fri, Jul 6, 2012 at 1:41 PM, Eric Schulte 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