From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: R and babel on Windows problem Date: Fri, 06 Jul 2012 12:41:08 -0600 Message-ID: <87ipe091h7.fsf@gmx.com> References: <87ipea3rfq.fsf@Rainer.invalid> <18442.1340998640@alphaville> <18840.1341001001@alphaville> <31262.1341264369@alphaville> <21447.1341594758@alphaville> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:50793) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SnDTl-00046w-P5 for emacs-orgmode@gnu.org; Fri, 06 Jul 2012 14:42:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SnDTj-0005OO-Pq for emacs-orgmode@gnu.org; Fri, 06 Jul 2012 14:42:09 -0400 Received: from mailout-us.gmx.com ([74.208.5.67]:40743) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SnDTj-0005OB-JT for emacs-orgmode@gnu.org; Fri, 06 Jul 2012 14:42:07 -0400 In-Reply-To: (John Hendy's message of "Fri, 6 Jul 2012 12:46:44 -0500") 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: John Hendy Cc: Achim Gratz , nicholas.dokos@hp.com, emacs-orgmode@gnu.org > > 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. 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