"d.tchin" <d.tc...@voila.fr> 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. > Emacsemail@example.com > http://lists.gnu.org/mailman/listinfo/emacs-orgmode _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacsfirstname.lastname@example.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode