[ESS] assiciation to ESS-R process

Rodney Sparapani rsparapa at mcw.edu
Thu Mar 24 20:55:51 CET 2011


On 03/24/11 05:15 AM, Andreas Leha wrote:
> Hi all,
>
> I have a simple question concerning the association of a buffer editing
> a .R file and an ESS-R process.
>
> Whenever I open a .R-file, it is not associated (as indicated by
> [none]).  The association happens only as soon as I evaluate something
> or run ess-switch-process.
>
> Now my question:
> I am looking for a function that I can run (or buffer-local variable I
> can set) to associate the buffer to an R session of a given name.  If an
> R process with the given name does not exist it should be started.
>
> Is such a function available?
>
> Regards,
> Andreas

You can probably accomplish what you want via R-mode-hook.
This works for me:
(add-hook 'R-mode-hook 'R)

Rodney



More information about the ESS-help mailing list