[R-SIG-Mac] In svg("tst.svg") : failed to load cairo DLL
Spencer Graves
@pencer@gr@ve@ @end|ng |rom prod@y@e@com
Fri Aug 6 23:12:24 CEST 2021
Hello:
In R 4.1.0 under macOS 11.4, 'svg("tst.svg")' says, "failed to load
cairo DLL".
This works fine under Windows 10. (I tested under RStudio 1.4.1106,
R terminal and R Console all with the same results.)
The first time I try "svg('tst.svg')" in a new R session, I get a
longer message; see below for that and for sessionInfo(). When I
repeat "svg('tst.svg')", I get only "failed to load cairo DLL".
Suggestions?
Thanks,
Spencer Graves
svg('tst.svg')
Warning messages:
1: In grSoftVersion() :
unable to load shared object
'/Library/Frameworks/R.framework/Resources/modules//R_X11.so':
dlopen(/Library/Frameworks/R.framework/Resources/modules//R_X11.so,
6): Library not loaded: /opt/X11/lib/libSM.6.dylib
Referenced from:
/Library/Frameworks/R.framework/Versions/4.1/Resources/modules/R_X11.so
Reason: image not found
2: In cairoVersion() :
unable to load shared object
'/Library/Frameworks/R.framework/Resources/library/grDevices/libs//cairo.so':
dlopen(/Library/Frameworks/R.framework/Resources/library/grDevices/libs//cairo.so,
6): Library not loaded: /opt/X11/lib/libXrender.1.dylib
Referenced from:
/Library/Frameworks/R.framework/Versions/4.1/Resources/library/grDevices/libs/cairo.so
Reason: image not found
3: In svg("tst.svg") : failed to load cairo DLL
> sessionInfo()
R version 4.1.0 (2021-05-18)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Big Sur 10.16
Matrix products: default
LAPACK:
/Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libRlapack.dylib
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_4.1.0 tools_4.1.0
>
More information about the R-SIG-Mac
mailing list