[ESS] assiciation to ESS-R process

Stephen Eglen S.J.Eglen at damtp.cam.ac.uk
Fri Mar 25 10:13:46 CET 2011

> Just for the background: I am asking because I use org-mode, which has
> the nice feature of allowing multiple R sessions (defined by a destinct
> name).  In org-mode the R-code is encapsulated in source-blocks of this
> form:
> #+begin_src R :session foo
>    print("some R code here")
> #+end_src
> This example block will be executed in the R session *foo*.
> Now, when the cursor is inside the source-block and C-c ' is pressed, a
> new buffer in ESS mode is presented with the source code only.  And I
> would like this buffer to be associated to the R session *foo* right
> away.  As soon as I evaluate some code from this new buffer, it is
> associated with the correct R session, but before that all (completion)
> functionality is not available.

I think you want to set ess-local-process-name given by the :session
argument in the .org buffer when the temp buffer is opened by C-c '.


More information about the ESS-help mailing list