Problem in installing summary tools package in Mac

When I try to install summary tools package in Mac,it comes as installed
But when try to load
library(summarytools)
Error: package or namespace load failed for ‘summarytools’:
.onLoad failed in loadNamespace() for 'tcltk', details:
call: fun(libname, pkgname)
error: X11 library is missing: install XQuartz from xquartz.macosforge.org

This error comes.Please help

Have you tried installing XQuartz as suggested?

I got the same warning message using RStudio 1.2.1335 on Mac (R 3.6.1).

I installed XQuartz and now I get:

library(summarytools)
Registered S3 method overwritten by 'pryr':
method from
print.bytes Rcpp
system has no X11 capabilities, therefore only ascii graphs will be produced by dfSummary()
Warning message:
In fun(libname, pkgname) : couldn't connect to display ":0"

Any idea why it does this ?

The thread here has a couple options you might try:

This includes one possible workaround:

devtools::intall_github("dcomtois/summarytools", ref = "no-x11-check")

What system are you running? If Mac, have you installed xcode at any point?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.