Code Monkey home page Code Monkey logo

Comments (6)

vspinu avatar vspinu commented on June 25, 2024

I am not aware of a direct method. People are using screen. I never used
it myself but this is how (I think) it works. Start emacs shell, connect
to remote host with ssh, run screen then run R. You can disconnect the
session and connect again later. There must be instructions on the web.

Please if you find anything useful please post here. I will add it to
the ESS documentation.

Torbjørn Lindahl on Tue, 29 Oct 2013 02:47:22 -0700 wrote:

Would it be possible, and implementable, to connect to an R session on another
host, perhaps using ssh, perhaps with tramp.

X-forward will probably be tricky, but personally I'd be happy to run R with
DISPLAY=:1 in for example vnc on that other host and just connect with a vnc
viewer to see graphics.


Reply to this email directly or view it on GitHub.

from ess.

DarwinAwardWinner avatar DarwinAwardWinner commented on June 25, 2024

You can't connect to an existing R session on another host, but you can start one by selecting a remote TRAMP directory as the starting directory. Make sure to disable tracebug and developer modes, since they don't know how to pass data to remote R processes.

from ess.

DarwinAwardWinner avatar DarwinAwardWinner commented on June 25, 2024

As for graphics, if you set up your ~/.ssh/config to always forward X11 (see below), then graphics will just work (very slowly, of course).

To enable X11 forwarding for all hosts, add the following in your ~/.ssh/config:

Host *
ForwardX11 yes

You can also put in a specific host name instead of *.

from ess.

vspinu avatar vspinu commented on June 25, 2024

Good point. Thanks. I am adding this to ESS manual. For this to work you need to have x server installed and R to be compiled with X support, and what else? I guess most machines comply with that requirement. amazon ubuntu servers definitely do.

I will try to add screen support by 14.03.

from ess.

DarwinAwardWinner avatar DarwinAwardWinner commented on June 25, 2024

I'm not exactly sure of all the requirements to do remote graphics. I had the X11 forwarding set up long before I was using ESS, so I just tried it and it worked. But I can say that I use R remotely through ESS and TRAMP quite often.

from ess.

torbjorn avatar torbjorn commented on June 25, 2024

I tend to use vnc when I work like this, it makes your work session less
lagging.

Sys.setenv( DISPLAY=":1" ) # on remote R, if I ran vncserver on display :1
, and then plot as normal and connect to it with a vnc viewer.

T:

On Tue, Nov 19, 2013 at 8:44 AM, Ryan Thompson [email protected]:

I'm not exactly sure of all the requirements to do remote graphics. I had
the X11 forwarding set up long before I was using ESS, so I just tried it
and it worked.


Reply to this email directly or view it on GitHubhttps://github.com//issues/66#issuecomment-28771415
.

mvh
Torbjørn Lindahl

from ess.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.