From mboxrd@z Thu Jan 1 00:00:00 1970 From: d.tchin Subject: Re: org-babel-R and windows ? Date: Wed, 13 Jan 2010 09:20:11 +0000 (UTC) Message-ID: References: <878wc3kyli.fsf@stats.ox.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NUzPE-0003AE-Be for emacs-orgmode@gnu.org; Wed, 13 Jan 2010 04:20:48 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NUzP9-00035Y-3b for emacs-orgmode@gnu.org; Wed, 13 Jan 2010 04:20:47 -0500 Received: from [199.232.76.173] (port=50213 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NUzP9-00035R-0c for emacs-orgmode@gnu.org; Wed, 13 Jan 2010 04:20:43 -0500 Received: from lo.gmane.org ([80.91.229.12]:56547) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NUzP8-00036I-IW for emacs-orgmode@gnu.org; Wed, 13 Jan 2010 04:20:42 -0500 Received: from list by lo.gmane.org with local (Exim 4.50) id 1NUzOz-0007Vz-3l for emacs-orgmode@gnu.org; Wed, 13 Jan 2010 10:20:35 +0100 Received: from APuteaux-754-1-12-94.w90-44.abo.wanadoo.fr ([90.44.55.94]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Jan 2010 10:20:33 +0100 Received: from d.tchin by APuteaux-754-1-12-94.w90-44.abo.wanadoo.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Jan 2010 10:20:33 +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: emacs-orgmode@gnu.org Dan Davison stats.ox.ac.uk> writes: > The org-babel default is to invoke R as an external shell command, and I > think this is what is causing the problem. It requires that the emacs > function shell-command can use the string "R" to invoke an R process, > i.e. the R installation and the shell path must be such that this is the > case. Thank you for the information and explanation. It seems that the problem comes from the windows shell. I try the following : I explicitely told emacs to use bash with the following instructions : (setq explicit-shell-file-name "C:/msys/1.0/bin/bash.exe") (setq shell-file-name explicit-shell-file-name) It works with bash. > > #+srcname:trial > #+begin_src R :session org-babel-R-session > c(4,5,6,7,8,9) > #+end_src The "session" way works too. Thank you.