I installed R on an OSX 10.7.5 server using brew:
brew install R
Everything seems so OK far, however Cairo is not working:
> svg(tempfile())
Warning messages:
1: In svg(tempfile()) :
unable to load shared object '/usr/local/Cellar/r/2.15.2/R.framework/Resources/library/grDevices/libs//cairo.so':
dlopen(/usr/local/Cellar/r/2.15.2/R.framework/Resources/library/grDevices/libs//cairo.so, 6): image not found
2: In svg(tempfile()) : failed to load cairo DLL
The shared object file seems to be missing completely:
id-86-243:Resources jeroen$ ls -ltr library/grDevices/libs/
total 488
-rwxrwxr-x 1 jeroen admin 245764 Dec 22 17:03 grDevices.so
I rarely use OSX, so I am not quite sure if this is a bug in this particular distribution of R, or if I have done something wrong when building it?