dcomtois / summarytools

R Package to Quickly and Neatly Summarize Data

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't load package from CRAN or github

pbchase opened this issue · comments

If I install summarytools 1.0.0 from CRAN, it installs, but R hangs at library(summarytools)

If install an older version with devtools::install_version() or devtools::install_github(), the installation hangs at ** byte-compile and prepare package for lazy loading. Here's the full text of the install_github() failure:

R version 4.1.0 (2021-05-18) -- "Camp Pontanezen"
Copyright (C) 2021 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin17.0 (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(devtools)
Loading required package: usethis
> devtools::install_github("dcomtois/summarytools")
Downloading GitHub repo dcomtois/summarytools@HEAD
✓  checking for file ‘/private/var/folders/dp/z36bnjr93llddzjwtp0xwxbr0000gn/T/Rtmp3UOHLR/remotes147e2184b5c36/dcomtois-summarytools-5070f93/DESCRIPTION’ ...
─  preparing ‘summarytools’:
✓  checking DESCRIPTION meta-information ...
─  checking for LF line-endings in source and make files and shell scripts
─  checking for empty or unneeded directories
─  building ‘summarytools_1.0.0.tar.gz’
   
* installing *source* package ‘summarytools’ ...
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading

This is on Mac OSX 11.4. imagemagick@6 is installed:

→ brew list | grep imagema
imagemagick
imagemagick@6

Hmmm are you updating from an earlier version? Have you tried installing from Rgui with a clean .Rprofile?

I don't think it specific to summarytools per se, although it does have many dependancies so maybe one of them triggers the problem. You can go through some google search results for ppl having similar problems, and try the relevant suggestions.

If nothing works, maybe try StackOverflow and/or the R mailing list and pls let us know how what you find! Thx

Edit

Also see potentially relevant cbail/textnets#12
Here, too, some things to try out: https://stackoverflow.com/questions/32122780/lazy-loading-error-in-r-package