On 18/10/2015 19:29, Marius Hofert wrote:
Hi,

I get ...

svg(filename=(file <- "foo.svg"))
Warning messages:
1: In svg(filename = (file <- "foo.svg")) :
   unable to load shared object
'/usr/local/R/R-3.2.2_build/library/grDevices/libs//cairo.so':
   dlopen(/usr/local/R/R-3.2.2_build/library/grDevices/libs//cairo.so,
6): image not found

Please check that the report is about that file not existing, and not something it depends on (if it exists, run otool -L on it).

2: In svg(filename = (file <- "foo.svg")) : failed to load cairo DLL

... although I installed XQuartz (and X11() works) after upgrading to
El Capitan. Do I need to configure R with something like
"--with-cairo"?

No, but you need a cairographics installation when you build R, and to point to it. There are two possibilities: see https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#OS-X .


Cheers,
Marius

PS: sessionInfo() is:

And so you built from source? Look at the configure output (you may need to re-run it). A build finding cairographics will report something like

  Additional capabilities:   PNG, JPEG, TIFF, NLS, cairo, ICU



sessionInfo()
R version 3.2.2 (2015-08-14)
Platform: x86_64-apple-darwin14.5.0 (64-bit)
Running under: OS X 10.11 (El Capitan)

locale:
[1] C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

loaded via a namespace (and not attached):
[1] compiler_3.2.2 tools_3.2.2

_______________________________________________
R-SIG-Mac mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-mac



--
Brian D. Ripley,                  [email protected]
Emeritus Professor of Applied Statistics, University of Oxford
1 South Parks Road, Oxford OX1 3TG, UK

_______________________________________________
R-SIG-Mac mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-mac

Reply via email to