[R] PNG diver problem

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Wed Nov 28 23:31:08 CET 2001


Prof Brian Ripley <ripley at stats.ox.ac.uk> writes:

> > I think it works in Linux too if you explicitly set you DISPLAY
> > variable (w/ Sys.putenv()), provided that the display is active and
> > you have the permissions to access it when the code runs. Windows has
> > no such thing and will not let you do anything without having the
> > display open anyway...
> 
> It works for me on Solaris and my XIG Linux Xsever without doing anything
> at all, BTW, but I suspect I do have permissions set for ripley at gannet,
> say.

Actually it doesn't work on Linux... The issue is that the x11 device
is not *loaded*, i.e. it is in the shared library startup code. That
could take a while to figure out how to override. However, there seems
to be nothing wrong with this:

R --vanilla < try.R > try.Rout

and try.R containing

png("try.png")
plot(0)


-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list