今天我这个小白在运行fix代码的时候出现了下面的错误:
> fix(Carseats)
Error in check_for_XQuartz() :
X11 library is missing: install XQuartz from xquartz.macosforge.org
mac的解决方法很简单,用brew安装一下就行了:
brew cask install xquartz
最后重启一下,让程序生效就行了。
参考文献
[1].ggplot2 sourcing error: X11 library is missing. https://stackoverflow.com/questions/28984243/ggplot2-sourcing-error-x11-library-is-missing