recently I installed Microsoft R Open 3.3.1 on my MacBook Pro (El Capitan 10.11.6). When I open RStudio or I use the R console I get this warning message:
Warning message:
In doTryCatch(return(expr), name, parentenv, handler) :
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): Symbol not found: _CGBitmapContextCreate
Referenced from: /Library/Frameworks/R.framework/Resources/modules//R_X11.so
Expected in: flat namespace
in /Library/Frameworks/R.framework/Resources/modules//R_X11.so
Do you know a way to prevent the printing of the message (or solve the issue)?
Thanks!
I had the issue also. The issue had been solved after installing XQuartz and then re-logining the system.
Note: the use of X11 (including tcltk) requires XQuartz to be installed since it is no longer part of OS X. Always re-install XQuartz when upgrading your OS X to a new major version.
For a CRAN R installation, I see that
R_X11.so
references the following libraries:That library does not reference the symbol you suggest:
However, for an MRO installation, I see the following libraries + symbols:
with referenced symbols:
These symbols are normally provided by the
CoreGraphics.framework
:However, the MRO-generated
R_X11.so
does not link to that, and so lookup of those symbols fails.tl;dr: Microsoft is shipping you broken software that does not contain links to the libraries providing the symbols it needs. Use the CRAN-provided binaries of R instead.