[ESS] remote R

Andreas Leha @ndre@@@|eh@ @end|ng |rom med@un|-goett|ngen@de
Tue Dec 15 21:33:04 CET 2015


Hi Sam,

Sam Steingold <sds using gnu.org> writes:
>> * Andreas Leha <naqernf.yrun using zrq.hav-tbrggvatra.qr> [2015-03-06 09:27:12 +0000]:
>>
>> (1) What is the state of connecting to a remote R session running in
>> tmux/screen?
>
> Both tmux and screen are far too "screen-oriented".
> My solution using dtach has been working perfectly for me for over a
> year:
> http://stackoverflow.com/a/22703777/850781
>
> (defvar R-remote-host "remote-server")
> (defvar R-remote-session "R")
> (defvar R-remote-directory "~")
> (defun R-remote (&optional remote-host session directory)
>   "Connect to the remote-host's dtach session running R."
>   (interactive (list
>                 (read-from-minibuffer "R remote host: " R-remote-host)
>                 (read-from-minibuffer "R remote session: " R-remote-session)
>                 (read-from-minibuffer "R remote directory: " R-remote-directory)))
>   (pop-to-buffer (make-comint (concat "remote-" session)
>                               "ssh" nil "-t" "-t" remote-host
>                               "cd" directory ";"
>                               "dtach" "-A" (concat ".dtach-" session)
>                               "-z" "-E" "-r" "none"
>                               inferior-R-program-name "--no-readline"
>                               inferior-R-args))
>   (ess-remote (process-name (get-buffer-process (current-buffer))) "R")
>   (setq comint-process-echoes t))

Thanks.  Yes, I have seen your set-up.  I have meant to give that a try
for quite some time.  It is still on my list.

Regards,
Andreas




More information about the ESS-help mailing list