From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Davison Subject: Re: [babel] Problems sourcing R code Date: Sun, 08 Nov 2009 14:05:27 -0500 Message-ID: <877hu0vnuw.fsf@stats.ox.ac.uk> References: <4AF5CFB8.3020000@uni-koeln.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N7D52-0006Ld-2W for emacs-orgmode@gnu.org; Sun, 08 Nov 2009 14:05:40 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N7D4w-0006II-D2 for emacs-orgmode@gnu.org; Sun, 08 Nov 2009 14:05:38 -0500 Received: from [199.232.76.173] (port=55411 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N7D4w-0006IC-2e for emacs-orgmode@gnu.org; Sun, 08 Nov 2009 14:05:34 -0500 Received: from markov.stats.ox.ac.uk ([163.1.210.1]:41867) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N7D4v-00088I-Ek for emacs-orgmode@gnu.org; Sun, 08 Nov 2009 14:05:33 -0500 In-Reply-To: <4AF5CFB8.3020000@uni-koeln.de> (Bernd Weiss's message of "Sat, 07 Nov 2009 20:51:20 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Weiss, Bernd " Cc: emacs-orgmode@gnu.org "Weiss, Bernd " writes: > Dear all, > > I am having trouble sourcing R code from within an org-file via > org-babel, i.e. I cant' replicate the most simple examples > > #+begin_src R :results value > matrix(rnorm(6), nrow=3D2) > #+end_src > > That's the error message I get whenever I type in C-c C-c: > > "executing R source code block... > Die Syntax f=C3=BCr den Dateinamen, Verzeichnisnamen oder die > Datentr=C3=A4gerbezeichnung ist falsch. > No result returned by source block" Dear Bernd, This is a problem relating to running R as an external shell process under Windows. For the time-being, please use the :session header argument to specify that evaluation is to take place in a persistent emacs R session. Alternatively, you could use the following configuration code to force R blocks to always use the specified session (you can change the session name of course): (setq org-babel-default-header-args:R '((:session . "*my-R-session*"))) Session-based evaluation is described briefly at http://orgmode.org/worg/org-contrib/babel/org-babel.php#basic-functionality Thanks for the report. We will investigate the issues with running R as an external process under Windows. Best wishes, Dan > > > However, I am not having any problems with the shell-example > > #+begin_src sh > echo "This file takes up `du -h org-babel.org |sed 's/\([0-9k]*\)[ > ]*org-babel.org/\1/'`" > #+end_src > > Org-R works as expected, i.e. I can source the following example without > any problems > > #+RR: x <- c(rnorm(10, mean=3D-3, sd=3D1), rnorm(10, mean=3D3, sd=3D1)) > #+R: title:"continuous-data" output-to-buffer:t > > > My setup: > - MS-Win Vista > - GNU Emacs 23.1.1 (i386-mingw-nt6.0.6002) of 2009-07-30 on SOFT-MJASON > - Org-mode: Org-mode version 6.32trans (release_6.32b.127.g471c2); > - ESS: v5.5 > - my .emacs/_emacs-File: > > > Thanks in advance for your help > > Bernd > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode