[ESS] running R remotely via tramp

Alex Branham @|ex@br@nh@m @end|ng |rom gm@||@com
Sun May 5 15:22:27 CEST 2019


On Sat 04 May 2019 at 12:48, Chris Wallace <cew54 using cam.ac.uk> wrote:

>> Instead of uncommenting those lines, passing t to executable-find’s
>> second argument should work. Can you check if this solves your issue?
>>
>> (unless  (executable-find inferior-ess-r-program t)
>>    (display-warning 'ess (format"%s could not be found on the
>> system. Try running `R-newest' instead, which searches your system
>> for R."  inferior-ess-r-program):error)
>>    (user-error  "%s program not found"  inferior-ess-r-program))
>
> Then I get "Wrong number of arguments: (1 . 1), 2"
>
> My emacs-version is 26.1 - should I try installing a newer version?

Ah, apparently that's a new feature of executable-find. We'll have to
rely on an older trick and just check if ess-directory is remote:

(unless  (or (file-remote-p ess-directory)
             (executable-find inferior-ess-r-program))
  (display-warning 'ess (format "%s could not be found on the system. Try running `R-newest' instead, which searches your system for R."  inferior-ess-r-program) :error)
  (user-error  "%s program not found"  inferior-ess-r-program))



More information about the ESS-help mailing list