Hi, I am newbie in R. I have R installed on Solaris machine and I am connected to Solaris machine from Windows using telnet. I want to create png image file using R. But when I issue R command from telnet:-> png("test.png")Following error occurs: 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 '' Also, when I checked DISPLAY environment variable, it shows 67.145.62.110:0.0 (67.145.62.110) is windows machine's ip address Please suggest any solutions for the stated problem. Thanks, Bhumir
You are probably not running a X server on your Windows machine, or if you are, you are not forwarding X connections. Even then, this is likely to be unsatisfactory unless you have a very good X server and a fast connection. Please read the help page for png, and note the See Also section which suggests a good solution to your dilemma. On Wed, 20 Jul 2005, bhumir jhaveri wrote:> I am newbie in R.Have you read the posting guide?> I have R installed on Solaris machine and I am connected > to Solaris machine from Windows using telnet. I want to create png image > file using R. But when I issue R command from telnet:- > >> png("test.png") > > Following error occurs: > > 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 '' > > Also, when I checked DISPLAY environment variable, it shows > 67.145.62.110:0.0 > > (67.145.62.110) is windows machine's ip address > > Please suggest any solutions for the stated problem.-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
Your alternatives are : a) Use pdf if you can. b) See help(bitmap) and especially the details section which tells you about setting the R_GSCMD path to ghostscript c) Try Xvfb. I do not know much about this. Try a google search. Regards, Adai On Wed, 2005-07-20 at 15:12 +0530, bhumir jhaveri wrote:> > Hi, > > I am newbie in R. I have R installed on Solaris machine and I am connected > to Solaris machine from Windows using telnet. I want to create png image > file using R. But when I issue R command from telnet:- > > > png("test.png") > > Following error occurs: > > 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 '' > > Also, when I checked DISPLAY environment variable, it shows > 67.145.62.110:0.0 > > (67.145.62.110) is windows machine's ip address > > Please suggest any solutions for the stated problem. > > Thanks, > > Bhumir > > ______________________________________________ > 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 >
Hi Bhumir Do you happen to have an X client installed on your Windows machine? e.g. cygwin, winaXe, eXceed, ... I've used winaXe with some success. Andrew On Wed, Jul 20, 2005 at 03:12:24PM +0530, bhumir jhaveri wrote:> > > Hi, > > I am newbie in R. I have R installed on Solaris machine and I am connected > to Solaris machine from Windows using telnet. I want to create png image > file using R. But when I issue R command from telnet:- > > > png("test.png") > > Following error occurs: > > 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 '' > > Also, when I checked DISPLAY environment variable, it shows > 67.145.62.110:0.0 > > (67.145.62.110) is windows machine's ip address > > Please suggest any solutions for the stated problem. > > Thanks, > > Bhumir > > ______________________________________________ > 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-- Andrew Robinson Senior Lecturer in Statistics Tel: +61-3-8344-9763 Department of Mathematics and Statistics Fax: +61-3-8344-4599 University of Melbourne, VIC 3010 Australia Email: a.robinson at ms.unimelb.edu.au Website: http://www.ms.unimelb.edu.au