[R] Creation of png=problems
Prof Brian Ripley
ripley at stats.ox.ac.uk
Tue Jul 22 09:05:11 CEST 2008
1) As the posting guide asked, update your R. R 2.7.x has a new png()
device that many people prefer.
2) As the INSTALL file points out, this is an installation issue discussed
in the R-admin manual. JPEG and PNG support is optional (even on Windows,
but someone compiled it in for you if you are using a binary).
R does run on Solaris 8 and does support jpeg() and png() there *if you
follow the R-admin manual* and install the additional software needed.
(For how much longer we will be able to test under Solaris 8, I don't
know -- the system I use will be decommissioned this summer.)
On Mon, 21 Jul 2008, Romain wrote:
> Hi everybody,
> I am currently working with R and I would like to create jpeg graphs with it.
Hmm, it is jpeg() creates jpeg graphs, not png().
> I am working on Windows and Unix but I would like to be able to create
> graphs (jpeg, png, bitmap...) under Unix.
> I am working on Solaris version 8. The documentation for R states that
> the latest version of or R known to compile on Solaris 8 is version
> 2.6.2. I have been able to compile and install R version 2.6.2. under
> Unix. I also installed Hmisc package needed by my script.
> The problem is that when I launch my script to create graphs from text
> files I get this error :
> Error in X11(paste("png::", filename, sep = ""), width, height, pointsize, :
> unable to start device PNG
> In addition: Warning message:
> In png(paste(PATH, "/", filename, sep = ""), 800, 600) :
> no png support in this version of R
> The thing is that I have tried to run my script under Windows with the same version (2.6.2) and everything is going well and the graph are created.
> Is it because (under Unix):
> jpeg png tcltk X11 http/ftp sockets libxml fifo
> FALSE FALSE FALSE TRUE TRUE TRUE TRUE TRUE
> If so, could someone explain to me how to change these capabilities in
> order to ba able to set them TRUE.
> I have also tried with other version of R but the error is the same one.
> If you have any other ideas about why it doesn't work I would be very
> The fact is that I have created a programm under Unix to make automatic
> the creation of the text files and I would like to create automatically
> the correspondant graphs.
> I hope someone will be able to help me.
> Thanks for your time.
> Have a good day.
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
More information about the R-help