I believe we are finally getting somewhere By doing capabilities() in R I get:
jpeg png tcltk X11 aqua http/ftp sockets libxml TRUE TRUE TRUE TRUE FALSE TRUE TRUE TRUE fifo cledit iconv NLS profmem cairo TRUE TRUE TRUE TRUE FALSE FALSE proving that my copy of R doesn't use cairo Now to find a copy that does use cairo Thanks On Mon, Jun 16, 2008 at 4:01 PM, Barry Rowlingson <[EMAIL PROTECTED]> wrote: > Patrick Jackson wrote: > >> So it does look like it is the issue with Xwindows, but since I have R >> version 2.7, why am I getting this error? > > Hmmm maybe I was a spot too hasty! > > The png() function can use either the Xlib or the Cairo back-end to make > its file. If it is using Xlib then you need an Xserver, if it's using > Cairo then you don't. My next guess is that your R doesn't have cairo > capabilities. > > The 'capabilities()' function will tell you if it has cairo. png() > should use it by default, so my assumption is you don't. I can get your > error on a non-Xlib connection by doing png(file="foo.png",type="Xlib"). > > You'll have to sort out a cairo-enabled version of R elsewhere - I'm > pretty certain this isn't an Rpy problem (unless R running under Rpy > isn't finding a cairo lib for some reason). > > So, see if interactive R has cairo capabilities. If it does, and png() > is using it, then it might be an Rpy problem... > > Barry > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > rpy-list mailing list > rpy-list@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/rpy-list > ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list