Skip to menu

교수님, 안녕하세요?
RStudio에서 ztable package를 install했는데 아래와 같은 error가 반복됩니다.
어떻게 하면 사용할 수 있을지 조언해주시면 감사하겠습니다.

> install.packages("ztable")
trying URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.6/ztable_0.2.0.tgz'
Content type 'application/x-gzip' length 446940 bytes (436 KB)
==================================================
downloaded 436 KB


> library(ztable)
Error: package or namespace load failed for ‘ztable’ in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/Library/Frameworks/R.framework/Versions/3.6/Resources/library/gdtools/libs/gdtools.so':
  dlopen(/Library/Frameworks/R.framework/Versions/3.6/Resources/library/gdtools/libs/gdtools.so, 6): Library not loaded: /opt/X11/lib/libcairo.2.dylib
  Referenced from: /Library/Frameworks/R.framework/Versions/3.6/Resources/library/gdtools/libs/gdtools.so
  Reason: image not found