[R-SIG-Mac] Cairo device

John Maindonald john.maindonald at anu.edu.au
Thu Jun 3 07:58:42 CEST 2010


I have been trying to invoke cairoDevice on the Mac.
Is there something wrong with my setup that is causing
the API version mismatch?

Under R64, I get:

> library(cairoDevice)
> Cairo()
Error in Cairo() : Graphics API version mismatch

> sessionInfo()
R version 2.11.0 (2010-04-22) 
x86_64-apple-darwin9.8.0 

locale:
[1] C

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

other attached packages:
[1] cairoDevice_2.10

Under R32 (maybe cairoDevice is not expected to work under R32), I get:

> library(cairoDevice)
Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared library '/Library/Frameworks/R.framework/Resources/library/cairoDevice/libs/i386/cairoDevice.so':
  dlopen(/Library/Frameworks/R.framework/Resources/library/cairoDevice/libs/i386/cairoDevice.so, 6): Library not loaded: /Library/Frameworks/R.framework/Versions/2.10/Resources/lib/libR.dylib
  Referenced from: /Library/Frameworks/R.framework/Resources/library/cairoDevice/libs/i386/cairoDevice.so
  Reason: image not found
Error: package/namespace load failed for 'cairoDevice'
> sessionInfo()
R version 2.11.0 (2010-04-22) 
i386-apple-darwin9.8.0 

locale:
[1] en_AU.UTF-8/en_AU.UTF-8/C/C/en_AU.UTF-8/en_AU.UTF-8

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

loaded via a namespace (and not attached):
[1] grid_2.11.0        lattice_0.18-8     lme4_0.999375-32  
[4] Matrix_0.999375-39 nlme_3.1-96       

John Maindonald             email: john.maindonald at anu.edu.au
phone : +61 2 (6125)3473    fax  : +61 2(6125)5549
Centre for Mathematics & Its Applications, Room 1194,
John Dedman Mathematical Sciences Building (Building 27)
Australian National University, Canberra ACT 0200.
http://www.maths.anu.edu.au/~johnm



More information about the R-SIG-Mac mailing list