Hi, I was wondering if anyone might be able to help. I am trying to run R on a remote machine, part of the model run I am attempting writes an external file output as a png (about 48 iterations per model run). I am running R 1.9.1 on SuSe9.0, and am accessing this via ssh from a Debian machine. Initially I used the command ssh -X IP.address and whilst I was able to run the model successfully the model run was extremely slow (which I could not understand as the output was being written to the remote machine), but tried to log in again, this time without the X windows facility and found that I couldn't run the model: Error in X11(paste("png::", filename, sep = ""), width, height, pointsize, : unable to start device PNG In addition: Warning message: unable to open connection to X11 display`' Could somebody please advise a way around this? Thanks in advance, Laura Laura Quinn Institute of Atmospheric Science School of Earth and Environment University of Leeds Leeds LS2 9JT tel: +44 113 343 1596 fax: +44 113 343 6716 mail: laura at env.leeds.ac.uk
This isn't exactly the same as your problem, but I came across access to X11 problems when running R over CGI. I got round it by installing Xvfb (X Virtual Frame Buffer) on the server. Mick -----Original Message----- From: r-help-bounces at stat.math.ethz.ch on behalf of Laura Quinn Sent: Wed 2/2/2005 4:18 PM To: r-help at stat.math.ethz.ch Cc: Subject: [R] Runnning R remotely Hi, I was wondering if anyone might be able to help. I am trying to run R on a remote machine, part of the model run I am attempting writes an external file output as a png (about 48 iterations per model run). I am running R 1.9.1 on SuSe9.0, and am accessing this via ssh from a Debian machine. Initially I used the command ssh -X IP.address and whilst I was able to run the model successfully the model run was extremely slow (which I could not understand as the output was being written to the remote machine), but tried to log in again, this time without the X windows facility and found that I couldn't run the model: Error in X11(paste("png::", filename, sep = ""), width, height, pointsize, : unable to start device PNG In addition: Warning message: unable to open connection to X11 display`' Could somebody please advise a way around this? Thanks in advance, Laura Laura Quinn Institute of Atmospheric Science School of Earth and Environment University of Leeds Leeds LS2 9JT tel: +44 113 343 1596 fax: +44 113 343 6716 mail: laura at env.leeds.ac.uk ______________________________________________ R-help at stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Why do you use png? I think that yu need X11 to save a png file. why not use a postscript? This is what ?png says "R can be compiled without support for either or both of these devices: this will be reported if you attempt to use them on a system where they are not supported. They will not be available if R has been started with --gui=none (and will give a different error message), and they may not be usable unless the X11 display is available to the owner of the R process." In addition I think the only thing slowing the machine is png. Jean On Wed, 2 Feb 2005, Laura Quinn wrote:> Hi, > > I was wondering if anyone might be able to help. I am trying to run R on a > remote machine, part of the model run I am attempting writes an external > file output as a png (about 48 iterations per model run). I am running R > 1.9.1 on SuSe9.0, and am accessing this via ssh from a Debian machine. > > Initially I used the command ssh -X IP.address and whilst I was able to > run the model successfully the model run was extremely slow (which I could > not understand as the output was being written to the remote machine), but > tried to log in again, this time without the X windows facility and found > that I couldn't run the model: > > Error in X11(paste("png::", filename, sep = ""), width, height, pointsize, > : > unable to start device PNG > In addition: Warning message: > unable to open connection to X11 display`' > > Could somebody please advise a way around this? > > Thanks in advance, > Laura > > Laura Quinn > Institute of Atmospheric Science > School of Earth and Environment > University of Leeds > Leeds > LS2 9JT > > tel: +44 113 343 1596 > fax: +44 113 343 6716 > mail: laura at env.leeds.ac.uk > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html >