bupaverse / processmapR

Visualize event logs using directed graphs, i.e. process maps.
https://bupaverse.github.io/processmapR/
Other
9 stars 6 forks source link

process_map() ---> Error in mutate(.tbl, !!!funs) : Caused by error in `stop_vctrs()`: ! Can't convert `replace` <character> to match type of `data` <double>. #44

Closed lmarzano closed 2 years ago

lmarzano commented 2 years ago

Hi!

recently, process_map() command is not working even with the test dataset "patients". I tried re-installing all the packages, updating R and RStudio but the problem persist.

Here the traceback I'm obtaining:

" Error in mutate(): ! Problem while computing color_level = (structure(function (..., .x = ..1, .y = ..2, . = ..1) .... Caused by error in stop_vctrs(): ! Can't convert replace to match type of data . Backtrace:

  1. patients %>% process_map()
    1. tidyr:::replace_na.default(., "")
    2. vctrs::vec_assign(data, missing, replace, x_arg = "data", value_arg = "replace")
    3. vctrs <fn>()
    4. vctrs::vec_default_cast(...)
    5. vctrs::stop_incompatible_cast(...)
    6. vctrs::stop_incompatible_type(...)
    7. vctrs:::stop_incompatible(...)
    8. vctrs:::stop_vctrs(...) "

Thank you for your help!

gertjanssenswillen commented 2 years ago

Can you share your sessionInfo() ?

lmarzano commented 2 years ago

R version 3.6.2 (2019-12-12) Platform: x86_64-apple-darwin15.6.0 (64-bit) Running under: OS X 11.2.3

Matrix products: default LAPACK: /Library/Frameworks/R.framework/Versions/3.6/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] petrinetR_0.2.1 processmonitR_0.1.0 xesreadR_0.2.3 processmapR_0.3.4
[5] eventdataR_0.2.0 edeaR_0.8.6 bupaR_0.4.4 xlsx_0.6.5
[9] lubridate_1.7.4 table1_1.4.2 factoextra_1.0.7 survminer_0.4.8
[13] ggpubr_0.4.0 survival_3.2-7 fpc_2.2-9 mclust_5.4.7
[17] cluster_2.1.0 caret_6.0-85 lattice_0.20-38 randomForest_4.6-14 [21] rpart_4.1-15 e1071_1.7-3 caTools_1.18.0 scales_1.1.1
[25] Amelia_1.7.6 Rcpp_1.0.8 dplyr_1.0.8 ggplot2_3.3.5

loaded via a namespace (and not attached): [1] readxl_1.3.1 backports_1.1.5 plyr_1.8.5 lazyeval_0.2.2
[5] splines_3.6.2 digest_0.6.29 foreach_1.4.7 htmltools_0.5.2
[9] fansi_0.4.1 magrittr_2.0.2 openxlsx_4.2.3 recipes_0.1.9
[13] gower_0.2.1 colorspace_1.4-1 ggrepel_0.8.2 haven_2.4.3
[17] xfun_0.30 crayon_1.3.4 jsonlite_1.6.1 zoo_1.8-8
[21] iterators_1.0.12 glue_1.6.2 gtable_0.3.0 ipred_0.9-9
[25] car_3.0-10 kernlab_0.9-29 prabclus_2.3-2 DEoptimR_1.0-8
[29] abind_1.4-5 DBI_1.1.0 rstatix_0.6.0 ggthemes_4.2.4
[33] miniUI_0.1.1.1 viridisLite_0.3.0 xtable_1.8-4 foreign_0.8-72
[37] km.ci_0.5-2 Formula_1.2-3 stats4_3.6.2 lava_1.6.6
[41] prodlim_2019.11.13 htmlwidgets_1.5.3 httr_1.4.1 DiagrammeR_1.0.6.1
[45] RColorBrewer_1.1-2 modeltools_0.2-23 ellipsis_0.3.2 XML_3.99-0.3
[49] pkgconfig_2.0.3 rJava_0.9-13 flexmix_2.3-17 nnet_7.3-12
[53] utf8_1.1.4 tidyselect_1.1.2 rlang_1.0.1 reshape2_1.4.4
[57] later_1.0.0 munsell_0.5.0 cellranger_1.1.0 tools_3.6.2
[61] visNetwork_2.0.9 cli_3.2.0 generics_0.0.2 broom_0.7.12
[65] evaluate_0.14 stringr_1.4.0 fastmap_1.1.0 yaml_2.2.1
[69] ModelMetrics_1.2.2.1 knitr_1.37 zip_2.1.1 robustbase_0.93-6
[73] survMisc_0.5.5 purrr_0.3.4 nlme_3.1-142 mime_0.9
[77] xml2_1.2.2 compiler_3.6.2 rstudioapi_0.11 plotly_4.10.0
[81] curl_4.3 ggsignif_0.6.0 shinyTime_1.0.1 tibble_3.1.6
[85] stringi_1.4.5 forcats_0.5.1 Matrix_1.2-18 KMsurv_0.1-5
[89] vctrs_0.3.8 pillar_1.7.0 lifecycle_1.0.1 data.table_1.12.8
[93] bitops_1.0-6 httpuv_1.5.2 R6_2.4.1 promises_1.1.0
[97] gridExtra_2.3 rio_0.5.16 codetools_0.2-16 MASS_7.3-51.4
[101] xlsxjars_0.6.1 withr_2.1.2 diptest_0.75-7 parallel_3.6.2
[105] hms_0.5.3 grid_3.6.2 timeDate_3043.102 tidyr_1.2.0
[109] class_7.3-15 rmarkdown_2.13 carData_3.0-4 pROC_1.16.1
[113] shiny_1.4.0.2

lmarzano commented 2 years ago

I fixed it

gertjanssenswillen commented 2 years ago

Can you tell us what was wrong?

lmarzano commented 2 years ago

I think there were some issues with knitr. I removed and re-uploaded the library.