From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Davison Subject: Re: Re: org-babel-R and windows ? Date: Wed, 13 Jan 2010 14:39:57 -0500 Message-ID: <874ompiyk2.fsf@stats.ox.ac.uk> References: <878wc3kyli.fsf@stats.ox.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NV94Z-0001dK-HM for emacs-orgmode@gnu.org; Wed, 13 Jan 2010 14:40:07 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NV94V-0001cq-Rk for emacs-orgmode@gnu.org; Wed, 13 Jan 2010 14:40:07 -0500 Received: from [199.232.76.173] (port=35576 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NV94V-0001cn-PM for emacs-orgmode@gnu.org; Wed, 13 Jan 2010 14:40:03 -0500 Received: from markov.stats.ox.ac.uk ([163.1.210.1]:61516) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NV94V-0007Dv-Cw for emacs-orgmode@gnu.org; Wed, 13 Jan 2010 14:40:03 -0500 In-Reply-To: (d. tchin's message of "Wed, 13 Jan 2010 09:20:11 +0000 (UTC)") 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: "d.tchin" Cc: emacs-orgmode@gnu.org "d.tchin" writes: > 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. Thanks for that, I've stored your solution in the org-babel development repo with a view to modifying our code so that these probloems are minimised in the future, and we'll also make sure the documentation addresses this. Dan > > >> >> #+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. > > > > > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode