dcomtois / summarytools

R Package to Quickly and Neatly Summarize Data
504 stars 77 forks source link

Error Downloading summarytools package #99

Closed arushidesai closed 4 years ago

arushidesai commented 4 years ago

Hi, I am trying to download the summarytools package in R using the install.packages command, and I get the output below. I would appreciate your help in getting this package installed.

If it helps, I cannot install devtools either unfortunately.

> install.packages("summarytools", dependencies=TRUE)

  There is a binary version available but the source version is later:
             binary source needs_compilation
summarytools  0.9.2  0.9.4             FALSE

installing the source package ‘summarytools’

trying URL 'https://cran.rstudio.com/src/contrib/summarytools_0.9.4.tar.gz'
Content type 'application/x-gzip' length 709925 bytes (693 KB)
==================================================
downloaded 693 KB

Warning in strptime(xx, f <- "%Y-%m-%d %H:%M:%OS", tz = tz) :
  unknown timezone 'zone/tz/2019c.1.0/zoneinfo/America/Los_Angeles'
* installing *source* package ‘summarytools’ ...
** package ‘summarytools’ successfully unpacked and MD5 sums checked
** R
** data
*** moving datasets to lazyload DB
** inst
** preparing package for lazy loading
Error : object ‘group_keys’ is not exported by 'namespace:dplyr'
ERROR: lazy loading failed for package ‘summarytools’
* removing ‘/Library/Frameworks/R.framework/Versions/3.4/Resources/library/summarytools’
Warning in install.packages :
  installation of package ‘summarytools’ had non-zero exit status

The downloaded source packages are in
    ‘/private/var/folders/73/krph7kwx17v2rvgsfypfg9xw0000gn/T/Rtmp3WW4ho/downloaded_packages’

Results from capabilities

> capabilities()
       jpeg         png        tiff       tcltk         X11        aqua 
       TRUE        TRUE        TRUE        TRUE       FALSE        TRUE 
   http/ftp     sockets      libxml        fifo      cledit       iconv 
       TRUE        TRUE        TRUE        TRUE        TRUE        TRUE 
        NLS     profmem       cairo         ICU long.double     libcurl 
       TRUE        TRUE        TRUE        TRUE        TRUE        TRUE 
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
dcomtois commented 4 years ago

Hi,

Sorry for the (really) late reply... What OS are you using?

If you can't install devtools and would like to try the dev version from github, you could try and install the "remotes" package.

install.packages("remotes")
remotes::install_github("dcomtois/summarytools", ref="dev-current")
dcomtois commented 4 years ago

Closing but feel free to update with additional info if issue is not resolved and I will reopen. Thx