[ESS] How can I launch an x-window from emacs ess when running R on a server?x

David LeBauer dlebauer at gmail.com
Thu Nov 11 06:37:58 CET 2010


Hello, I am using emacs-snapshot with the ssh.el package, following
the instructions from the ess manual.

There are a few ways to open an R session, but this is how I do it:

1 open emacs
2 C-x C-f /server:dir/file.R this puts me in ESS [S] mode
3 Type 'plot(1)'
4 C-c C-n to run
5 emacs asks for starting directory, and I choose the /server:dir/

I would like for a figure to pop up but it wont.

This also doesn't work when using ess-remote in shell or tramp mode,
but it does work if I set the starting directory to my local desktop.

Any advice much appreciated. My current workaround is to print the
file to pdf and then open pdf in DocView mode, but this takes a few
extra steps and is slow.

Thanks!

-David

Here are the messages written to the message buffer: after doing the above

Loading 00debian-vars...
No /etc/mailname. Reverting to default...
Loading 00debian-vars...done
Loading /etc/emacs/site-start.d/20apel.el (source)...done
Loading /etc/emacs-snapshot/site-start.d/50auctex.el (source)...
Loading /usr/share/emacs/23.1.50/site-lisp/auctex.el (source)...done
Loading /usr/share/emacs/23.1.50/site-lisp/preview-latex.el (source)...done
Loading /etc/emacs-snapshot/site-start.d/50auctex.el (source)...done
Loading /etc/emacs/site-start.d/50autoconf.el (source)...done
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...
Skipping dictionaries-common setup for emacs-snapshot
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done
Loading /etc/emacs/site-start.d/50ess.el (source)...done
Loading /etc/emacs/site-start.d/50flim.el (source)...done
Loading /etc/emacs/site-start.d/50w3m-el-snapshot.el (source)...done
Loading /home/dlebauer/.emacs.d/zenburn.el (source)...done
Loading /etc/emacs/ssh.el (source)...done [3 times]
For information about GNU Emacs and the GNU system, type C-h C-a.
Tramp: Opening connection for forecast using ssh...
Tramp: Waiting 60s for local shell to come up...
Tramp: Sending command `ssh forecast   -q -e none && exit || exit'
Tramp: Waiting for prompts from remote shell
Tramp: Found remote shell prompt on `forecast'

(New file)
Type C-h m for help on ESS version 5.11
Wrote /tmp/tramp.18826E9F
Tramp: Opening connection for forecast using ssh...
Tramp: Waiting 60s for local shell to come up...
Tramp: Sending command `ssh forecast   -q -e none && exit || exit'
Tramp: Waiting for prompts from remote shell
Tramp: Found remote shell prompt on `forecast'
using process 'R'
Mark set



More information about the ESS-help mailing list