[ESS] remote R
Sam Steingold
@d@ @end|ng |rom gnu@org
Tue Dec 15 21:21:46 CET 2015
> * 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
--8<---------------cut here---------------start------------->8---
(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))
--8<---------------cut here---------------end--------------->8---
--
Sam Steingold (http://sds.podval.org/) on Ubuntu 15.10 (wily) X 11.0.11702000
http://www.childpsy.net/ http://ffii.org http://dhimmi.org
http://honestreporting.com http://truepeace.org http://jihadwatch.org
The difference between theory and practice is that in theory there isn't any.
More information about the ESS-help
mailing list