Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

warning message when using Microsoft R Open 3.3.1 in MAC

I am using Mac OS X EL Capitan 10.11.6 with Microsoft R Open 3.3.1.

After following the instructions for installation of MRO and having a fresh installation of XQuartz 2.7.9, I am having the following error whenever I want to install any R package, for example, when installing MASS, I am seeing the following warning message. It seems like it does not affect the usage, but it is annoying to see this warning every time.

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
* installing *source* package ‘MASS’ ...
** package ‘MASS’ successfully unpacked and MD5 sums checked
** libs
like image 339
RLearner Avatar asked Feb 01 '26 11:02

RLearner


1 Answers

I have the same problem when using Microsoft R Open 3.3.1 on macOS 10.12.

I refer to this link: Warning message when opening RStudio or the R console

and replace R_X11.so with R_X11.so of CRAN R.

  1. Go to CRAN R for Mac OS X, and download the installer(.pkg)
  2. install the CRAN R.
  3. you can find the R_X11.so of CRAN R at /Library/Frameworks/R.framework/Versions/3.3/Resources/modules/
  4. install MRO
  5. replace R_X11.so of MRO(at /Library/Frameworks/R.framework/Versions/3.3.1-MRO/Resources/modules/) with R_X11.so of CRAN R(look step 3)
like image 97
hyacz Avatar answered Feb 04 '26 02:02

hyacz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!