of2 / clusterBMA

clusterBMA: Bayesian Model Averaging for Clustering
13 stars 1 forks source link

Error on Installation. #1

Closed jlhanson5 closed 1 year ago

jlhanson5 commented 1 year ago

Hello GitHub colleagues,

I tried to install clusterBMA, but ran into an issue with a dependency (namely clusterCrit).

Here's my rundown of steps... 1) Failure with clusterCrit

> devtools::install_github("of2/clusterBMA")
Downloading GitHub repo of2/clusterBMA@HEAD
Skipping 1 packages not available: clusterCrit
── R CMD build ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
✔  checking DESCRIPTION meta-information ...s/yp1vw5_d24scmvgbnxlr2gn00000gn/T/RtmpRArfBN/remotes66f55f554ee/of2-clusterBMA-b6f57e7/DESCRIPTION’ ...

ERROR: dependency ‘clusterCrit’ is not available for package ‘clusterBMA’
* removing ‘/Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library/clusterBMA’
Warning message:
In i.p(...) :
  installation of package ‘/var/folders/ts/yp1vw5_d24scmvgbnxlr2gn00000gn/T//RtmpRArfBN/file66f5d9b0158/clusterBMA_0.2.0.tar.gz’ had non-zero exit status

2) clusterCrit not being on cran

> install.packages('clusterCrit')
--- Please select a CRAN mirror for use in this session ---
Warning message:
package ‘clusterCrit’ is not available for this version of R

A version of this package for your version of R might be available elsewhere,
see the ideas at
https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages 

3) The dev/cran archive of clusterCrit not installing

> devtools::install_github("cran/clusterCrit")
Downloading GitHub repo cran/clusterCrit@HEAD
Error: Failed to install 'clusterCrit' from GitHub:
  Could not find tools necessary to compile a package
Call `pkgbuild::check_build_tools(debug = TRUE)` to diagnose the problem.

Here's my R info...

> sessionInfo()
R version 4.3.0 (2023-04-21)
Platform: x86_64-apple-darwin20 (64-bit)
Running under: macOS Ventura 13.5.1

Matrix products: default
BLAS:   /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/lib/libRblas.0.dylib 
LAPACK: /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/lib/libRlapack.dylib;  LAPACK version 3.11.0

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

time zone: America/New_York
tzcode source: internal

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
 [1] miniUI_0.1.1.1    compiler_4.3.0    crayon_1.5.2      promises_1.2.0.1  Rcpp_1.0.11       stringr_1.5.0     callr_3.7.3       later_1.3.1      
 [9] fastmap_1.1.1     mime_0.12         R6_2.5.1          curl_5.0.1        htmlwidgets_1.6.2 desc_1.4.2        profvis_0.3.8     rprojroot_2.0.3  
[17] shiny_1.7.4       rlang_1.1.1       cachem_1.0.8      stringi_1.7.12    httpuv_1.6.11     fs_1.6.3          pkgload_1.3.2     memoise_2.0.1    
[25] cli_3.6.1         magrittr_2.0.3    ps_1.7.5          digest_0.6.33     processx_3.8.2    rstudioapi_0.15.0 xtable_1.8-4      remotes_2.4.2    
[33] devtools_2.4.5    lifecycle_1.0.3   prettyunits_1.1.1 vctrs_0.6.3       glue_1.6.2        urlchecker_1.0.1  sessioninfo_1.2.2 pkgbuild_1.4.2   
[41] purrr_1.0.1       usethis_2.2.0     tools_4.3.0       ellipsis_0.3.2    htmltools_0.5.6  

Have others run into this issue? Any thoughts on troubleshooting this all?

Thanks in advance, Jamie.

of2 commented 1 year ago

Thanks for raising this issue @jlhanson5 - I will work on a fix and get back to you.

of2 commented 1 year ago

Hi @jlhanson5 just checking if an installation option for clusterCrit ended up working for you? Sorry that this fell off my radar during a busy period.

jlhanson5 commented 1 year ago

I forget how I ultimately solved it... but I think installed clusterCrit from source, etc. [If I reconstruct what I did from my notes, I will add more details here]

of2 commented 1 year ago

OK great, thank you so much