Bernd Weiss <bernd.we...@uni-koeln.de> wrote: > Hi all, > > when using R and shell commands, the shell commands are sent to the R > buffer. I guess this has something to do with the session argument?! > > ############# test.org ##################### > > #+property: session *R* > > #+BEGIN_SRC R > ## comment > 1+1 > #+END_SRC > > #+results: > : 2 > > > #+BEGIN_SRC sh > ls -a > #+END_SRC > > #+results: > : Error: object 'a' not found > > ############# test.org ##################### >
AFAIK, the syntax is (note the BABEL and the :session) #+BABEL: :session *R* With that, I can certainly reproduce what you get and it is indeed the global session that causes it. If you want a global session for all the other code blocks but want to override it for the single shell block, you can do: #+BEGIN_SRC sh :session *SH* ls -a #+END_SRC Nick