[ESS] can I make ess to recognise ~/.bashrc

Jannis bt_jannis at yahoo.de
Tue Jul 30 14:03:20 CEST 2013


Well, now I have this:

(defun R+ ()
   (interactive)
   (let ((inferior-R-program-name))
     (if (and buffer-file-name
          (file-remote-p buffer-file-name))
     "usr/local/apps/R/R-2.15.1_ACML/bin/R"
       "/usr/bin/R")
       (R)))

This, however, completely freezes emacs after hitting M-x R+ Return. 
Both in tramp and in non tramp mode. Any other ideas? Perhaps there is 
another way to start a specific R version while using tramp. Otherwise I 
will just skip this. I would just prefer to use tramp for the ess-eldoc 
and autofill functionality that the ess.el way does not provide.

Cheers
jannis



On 27.07.2013 10:04, Vitalie Spinu wrote:
> On 25 July 2013 18:37, Jannis <bt_jannis at yahoo.de> wrote:
>
>> (defun R+ ()
>>    (interactive)
>>    (let ((inferior-R-program-name)
>>          (if (and buffer-file-name
>>                   (file-remote-p buffer-file-name))
>>              "usr/local/apps/R/R-2.15.1_**ACML/bin/R"
>>            "/usr/bin/R"))
>>      (R)))
>
>
>
> Close the let paren:
>
> (defun R+ ()
>    (interactive)
>    (let ((inferior-R-program-name))
>        (if (and buffer-file-name
>                  (file-remote-p buffer-file-name))
>            "usr/local/apps/R/R-2.15.1_ACML/bin/R
>          "/usr/bin/R")
>        (R)))
>



More information about the ESS-help mailing list