AlbertoAlmuinha / bayesmodels

The Tidymodels Extension for Bayesian Models
https://albertoalmuinha.github.io/bayesmodels/
Other
54 stars 9 forks source link

The package can't be installed #15

Open AlexisBocuze opened 2 years ago

AlexisBocuze commented 2 years ago

Hi, I am trying to install the bayesmodels package with devtools::install_github("AlbertoAlmuinha/bayesmodels")

I get the following error:

Error: package or namespace load failed for ‘bayesmodels’: .onLoad failed in loadNamespace() for 'bayesmodels', details: call: check_mode_for_new_engine(model, eng, mode) error: 'regression' is not a known mode for model gen_additive_reg(). Error: loading failed Execution halted

It seems that the parsnip defined modes are not properly passed during the installation.

Any idea how to fix that?

Session info:

R version 4.2.0 (2022-04-22) Platform: x86_64-apple-darwin17.0 (64-bit) Running under: macOS Monterey 12.2.1

Matrix products: default LAPACK: /Library/Frameworks/R.framework/Versions/4.2/Resources/lib/libRlapack.dylib

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

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

other attached packages: [1] parsnip_0.2.1 rlang_1.0.2

loaded via a namespace (and not attached): [1] tidyselect_1.1.2 remotes_2.4.2 purrr_0.3.4 colorspace_2.0-3 [5] vctrs_0.4.1 generics_0.1.2 testthat_3.1.4 usethis_2.1.5
[9] utf8_1.2.2 pkgbuild_1.3.1 pillar_1.7.0 glue_1.6.2
[13] withr_2.5.0 DBI_1.1.2 sessioninfo_1.2.2 foreach_1.5.2
[17] lifecycle_1.0.1 munsell_0.5.0 gtable_0.3.0 devtools_2.4.3
[21] codetools_0.2-18 evaluate_0.15 memoise_2.0.1 callr_3.7.0
[25] fastmap_1.1.0 doParallel_1.0.17 ps_1.7.0 parallel_4.2.0
[29] curl_4.3.2 fansi_1.0.3 scales_1.2.0 cachem_1.0.6
[33] desc_1.4.1 pkgload_1.2.4 fs_1.5.2 brio_1.1.3
[37] ggplot2_3.3.6 png_0.1-7 digest_0.6.29 processx_3.5.3
[41] dplyr_1.0.9 grid_4.2.0 rprojroot_2.0.3 hardhat_0.2.0
[45] cli_3.3.0 tools_4.2.0 magrittr_2.0.3 tibble_3.1.7
[49] crayon_1.5.1 tidyr_1.2.0 pkgconfig_2.0.3 ellipsis_0.3.2
[53] prettyunits_1.1.1 assertthat_0.2.1 rstudioapi_0.13 iterators_1.0.14 [57] R6_2.5.1 compiler_4.2.0

AlbertoAlmuinha commented 2 years ago

It should work now. It is updated to the version of parsnip.

derek-harding commented 1 year ago

Hi @AlbertoAlmuinha, it seems the package is still pulled from CRAN. Is there any future to keep the package maintained?