Re: graphics window for TRAMP sessions

Fernando Mayer via ESS-help <[email protected]>
Newsgroups gmane.emacs.ess.general
Message-ID <CAO4bAdPm5-UPvoxQphQ6UiJB2JXfeoM9kPMmFR4vSpz9ToWYQg@mail.gmail.com>
I do this normally with TRAMP, however, you need to enable X11 forwarding
both on the client and the server side.

On the client side: edit (or create) ~/.ssh/config to include the following
line

ForwardX11 yes

On the server side: you will need to edit /etc/ssh/sshd_config to
include/enable the following line

X11Forwarding yes

In a normal TRAMP session I'm able to display R graphics on my local
machine.

HTH,

---
Fernando de Pol Mayer
Laboratório de Estatística e Geoinformação - LEG
Departamento de Estatística - DEST
Universidade Federal do Paraná - UFPR
URL: http://leg.ufpr.br/~fernandomayer
e-mail: fernando.mayer [@] {gmail.com, ufpr.br}


On Fri, May 20, 2022 at 4:52 PM Tyler Smith via ESS-help <
[email protected]> wrote:

> Hi,
>
> I'm working on a remote machine. I load my script file via `C-x C-f
> /ssh:host:file.Rmd`. When I run code from the code blocks, it starts a
> session on the remote machine, no problems. However, if I do a plot,
> nothing happens. Or at least nothing is displayed.
>
> I've been working around this by creating a jpeg file for each of my plots
> on the remote machine, then opening the file this creates to view the image.
>
> I wonder: is it possible to use ESS/TRAMP in a way that allows the remote
> R session to display a graphics window on my local machine? Without Emacs,
> I can do this via `ssh -X`, is there a way to tell TRAMP to use the `-X`
> flag? Or is this possible with ESS-remote instead of TRAMP?
>
> Thanks for any suggestions,
>
> Tyler
>
> --
> plantarum.ca
>
> ______________________________________________
> [email protected] mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
>

	[[alternative HTML version deleted]]

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.