THANKS, Prof. Ripley. That fixed the problem. Spencer Graves
[please excuse a problem with delayed detection of an error with
autocomplete.]
On 8/7/21 12:05 AM, Prof Brian Ripley wrote:
Install (or re-install) XQuartz. As the R-admin manual §4 says
Various parts of the build require XQuartz to be installed: see
https://www.xquartz.org/releases. These include the tcltk package and
the X11 device: attempting to use these without XQuartz will if possible
remind you. This is also needed for some builds of the
cairographics-based devices (which are not often used on macOS) such as
png(type = "cairo").
svg() is a cairographics-based device .
On 06/08/2021 22:12, Spencer Graves wrote:
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
>
_______________________________________________
R-SIG-Mac mailing list
R-SIG-Mac@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-mac
_______________________________________________
R-SIG-Mac mailing list
R-SIG-Mac@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-mac