emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Re: org-babel-R and windows ?


From: Dan Davison
Subject: Re: [Orgmode] Re: org-babel-R and windows ?
Date: Wed, 13 Jan 2010 14:39:57 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

"d.tchin" <address@hidden> writes:

> Dan Davison <davison <at> 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.
> address@hidden
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode




reply via email to

[Prev in Thread] Current Thread [Next in Thread]