[ESS] ess-eldoc via ssh remote session
LI BOWEN
bowenli37 at gmail.com
Wed Sep 18 07:38:28 CEST 2013
Vitalie Spinu <spinuvit <at> gmail.com> writes:
>
>
> What is ssh.el? Do you rely on ess-remote? Please provide reproducible
> steps. Or better, use tramp. All ESS features should work with tramp
> remote session.
>
> Vitalie
>
> >> Jannis <bt_jannis <at> yahoo.de>
> >> on Tue, 25 Jun 2013 13:42:26 +0200 wrote:
>
> > Dear ESS community,
>
> > I use ESS and ssh.el to connect to a remote R instance on a cluster
machine. The
> > ess-eldoc argument hints that I normally see when running R locally
however do
> > not work in this case. Is there any way to switch this on?
>
> > Thanks a lot
> > Jannis
>
> > ______________________________________________
> > ESS-help <at> r-project.org mailing list
> > https://stat.ethz.ch/mailman/listinfo/ess-help
>
> ______________________________________________
> ESS-help <at> r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
>
>
Hi,
2.3 Summary of workflow
Put in init.el to be able to send key to terminal from ssh.
;; used to send screen keybindings to shell in emacs
(define-key shell-mode-map (kbd "C-l") (lambda (seq) (interactive "k")
(process-send-string nil seq)))
(define-key inferior-ess-mode-map (kbd "C-l") (lambda (seq) (interactive
"k") (process-send-string nil seq)))
(for new R session)From terminal ssh to host, create screen session and
launch R in the screen session. C-z to send R to background. Detach from
screen.
In emacs M-x ssh, next enter user at host, and password.
In ssh, enter TERM=xterm, for screen to work.
sh grabssh, save environment variables for X11 forwarding.
screen -r and run bin/fixssh to update screen environment variable for X11
forwarding. If you are in R, C-l C-z to send R to background first.
fg, to send R to foreground.
source(‘ESSR.R’)
M-x ess-remote to attach the current process to ess.
Lastly,
(ess-process-put 'funargs-cache (make-hash-table :test 'equal))
(ess-process-put 'funargs-pre-cache nil)
(ess-load-extras)
http://libw.name/wordpress/?p=49
More information about the ESS-help
mailing list