From simon.urbanek at r-project.org  Thu May 19 16:00:39 2011
From: simon.urbanek at r-project.org (Simon Urbanek)
Date: Thu, 19 May 2011 10:00:39 -0400
Subject: [Rd] Error in svg() : cairo-based devices are not supported on
	this build
In-Reply-To: <BANLkTikOvmxNV_-oJ9kLqO5J-CN35dWN2A@mail.gmail.com>
References: <BANLkTikOvmxNV_-oJ9kLqO5J-CN35dWN2A@mail.gmail.com>
Message-ID: <7DA13B0C-B551-472A-9EB1-EE40A05E107D@r-project.org>


On May 19, 2011, at 8:45 AM, Karl Forner wrote:

> Hello,
> 
> Sorry if it is not the right place..
> 
> 
> I installed R-2.13.0 on a x86_64 linux server.
> All went fine, but the svg()  function yells:
>> svg()
> Error in svg() : cairo-based devices are not supported on this build
> 
> I have the Cairo, cairoDevice, RSvgDevice packages installed, and running.
> 

Those are irrelevant for svg() which is provided by built-in cairo support in R, not the packages, so you want to check capabilities():
> capabilities("cairo")
cairo 
 TRUE 

But if you have working Cairo package can simply use CairoSVG() instead of svg().

Cheers,
Simon



>> Cairo.capabilities()
>  png  jpeg  tiff   pdf   svg    ps   x11   win
> TRUE  TRUE  TRUE  TRUE  TRUE  TRUE  TRUE FALSE
> 
> I tried to google around unsuccessfully. The only thing I noticed in
> config.log is:
> r_cv_has_pangocairo=no
> r_cv_cairo_works=yes
> r_cv_has_cairo=yes
> #define HAVE_WORKING_CAIRO 1
> #define HAVE_CAIRO_PDF 1
> #define HAVE_CAIRO_PS 1
> #define HAVE_CAIRO_SVG 1
> 
> 
> So what can be wrong ??
> 
> Thank you
> 
> Karl
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
> 
> 



[Rd] Error in svg() : cairo-based devices are not supported on this build
Simon Urbanek