[ESS] How can I launch an x-window from emacs ess when running R on a server?x
David LeBauer
dlebauer at gmail.com
Sat Nov 13 06:59:01 CET 2010
Thanks all,
This simple solution had not occurred to me, partly because Tramp mode
makes the use of ssh so transparent.
So, I fixed it by adding the "ForwardX11 yes" to my ~/.ssh/config,
(might be ~/.ssh/ssh_config on some systems) e.g.
Host any_server_nickname
HostName hostname
User username
ForwardX11 yes
-David
On Wed, Nov 10, 2010 at 11:58 PM, Frede Aakmann Tøgersen
<frtog at vestas.com> wrote:
> Hi
>
> I think that you need to use either -X or -Y as command line arguments to ssh besides those already there. It seems like you're running some kind of unix, so a X-server is probably already running. On a Windows platform you would need a running X server to handle the graphics.
>
>
> Yours sincerely / Med venlig hilsen
>
>
> Frede Aakmann Tøgersen
> Statistician, M.Sc., Ph.D.
> Modeling, Statistics and Risk Analysis
>
> Vestas Technology R&D
> T +45 9730 5135
> M +45 2547 6050
> frtog at vestas.com
> http://www.vestas.com
>
> Company reg. name: Vestas Wind Systems A/S
> This e-mail is subject to our e-mail disclaimer statement.
> Please refer to www.vestas.com/legal/notice
> If you have received this e-mail in error please contact the sender.
>
>
> -----Original Message-----
> From: ess-help-bounces at stat.math.ethz.ch [mailto:ess-help-bounces at stat.math.ethz.ch] On Behalf Of David LeBauer
> Sent: 11. november 2010 06:38
> To: ess-help at stat.math.ethz.ch
> Subject: [ESS] How can I launch an x-window from emacs ess when running R on a server?x
>
> 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
>
> ______________________________________________
> ESS-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
>
--
David LeBauer, PhD
Energy Biosciences Institute
University of Illinois Urbana-Champaign
1206 W. Gregory Drive
Urbana, IL 61801, U.S.A.
More information about the ESS-help
mailing list