简体   繁体   中英

Do I really need X11 for R on Mac?

R version 3.5.2

macOS version 10.14.2 mojave

Whenever installing an R, package I see the following warning:

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): Library not loaded: /opt/X11/lib/libSM.6.dylib
  Referenced from: /Library/Frameworks/R.framework/Resources/modules//R_X11.so
  Reason: image not found

Everything seems to work fine. ggplot2 plots get drawn,...etc.

Do I really need to install X11 from XQuartz? Is anything actually broken?

Does it "unlock" anything?

this may work:

brew install --cask xquartz

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM