Trouble installing R package Cairo
1
0
Entering edit mode
7.4 years ago
rbronste ▴ 420

Hi,

Trying to install Cairo package through CRAN and although the install goes smoothly I get the following message when trying to load package - have not seen this with other packages where download is normal:

Error : .onLoad failed in loadNamespace() for 'Cairo', details:
  call: dyn.load(file, DLLpath = DLLpath, ...)
  error: unable to load shared object '/Library/Frameworks/R.framework/Versions/3.3/Resources/library/Cairo/libs/Cairo.so':
  dlopen(/Library/Frameworks/R.framework/Versions/3.3/Resources/library/Cairo/libs/Cairo.so, 6): 
  Library not loaded: /opt/X11/lib/libXrender.1.dylib
  Referenced from: /Library/Frameworks/R.framework/Versions/3.3/Resources/library/Cairo/libs/Cairo.so
  Reason: image not found
Error: package or namespace load failed for ‘Cairo’

Any ideas? Thanks.

R Cairo • 17k views
ADD COMMENT
0
Entering edit mode
7.4 years ago
Samuel Brady ▴ 330

You may need to install Cairo on your operating system. This can get you started:

https://www.cairographics.org/download/.

This may also be helpful:

https://stackoverflow.com/questions/16678934/r-cairo-installation-without-apt-get-sudo#25014476.

Good luck.

ADD COMMENT

Login before adding your answer.

Traffic: 2349 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6