dcomtois / summarytools

R Package to Quickly and Neatly Summarize Data
523 stars 78 forks source link

Installing in Azure Synapse + SparkR: Error "fatal error: Magick++.h: No such file or directory compilation terminated." #183

Open AmosBunde opened 1 year ago

AmosBunde commented 1 year ago

start install.packages pkgs=summarytools time:2023-02-24 09:20:52 Installing package into ‘/nfs4/R/user-lib/application_1677225147371_0001’ (as ‘lib’ is unspecified) also installing the dependency ‘magick’

trying URL 'https://cloud.r-project.org/src/contrib/magick_2.7.3.tar.gz' Content type 'application/x-gzip' length 4813163 bytes (4.6 MB)

downloaded 4.6 MB

trying URL 'https://cloud.r-project.org/src/contrib/summarytools_1.0.1.tar.gz' Content type 'application/x-gzip' length 1263885 bytes (1.2 MB)

downloaded 1.2 MB

Loading required package: usethis

The downloaded source packages are in ‘/tmp/RtmpGV1cQ6/downloaded_packages’ [notebook] install.packages pkgs=summarytools cost [5s] time:2023-02-24 09:20:57 [1] "Error in library(summarytools): there is no package called ‘summarytools’\n----LIVY_END_OF_ERROR----" Warning messages: 1: In func(...) : installation of package ‘magick’ had non-zero exit status 2: In func(...) : installation of package ‘summarytools’ had non-zero exit status

"Error in loadNamespace(x): there is no package called ‘summarytools’"

dcomtois commented 1 year ago

Not sure if this has been resolved... If not, a solution to make it Azure-compatible (if there is no way to allow Magick, that is), would be to have an alternate version of summarytools which doesn't require Magick -- which is not absolutely necessary; it's just that without it, there is a little bit of blur created when resizing graphs.

Further development is not on the radar on my end, at least for a while, but if anyone wants to have a go at it, help is always welcome.