facebookexperimental / facebookexperimental/Robyn
Error in `mutate()`: ℹ In argument: `cuts = cut(...)` ! 'to' must be a finite number
- Dominant language
- Jupyter Notebook
- Stars
- 1.5k
- Forks
- 433
- PR merge metrics
- No merged PRs in 30d
Description
Got this error right at the end of the last trial. Don't have any missing values in the dataframe.
```
Backtrace:
▆
1. ├─Robyn::robyn_run(...)
2. │ └─Robyn::robyn_converge(OutputModels, ...)
3. │ └─... %>% ...
4. ├─dplyr::mutate(...)
5. ├─dplyr:::mutate.data.frame(...)
6. │ └─dplyr:::mutate_cols(.data, dplyr_quosures(...), by)
7. │ ├─base::withCallingHandlers(...)
8. │ └─dplyr:::mutate_col(dots[[i]], data, mask, new_columns)
9. │ └─mask$eval_all_mutate(quo)
10. │ └─dplyr (local) eval()
11. ├─base::cut(...)
12. ├─base::cut.default(...)
13. ├─base::seq(0, max(.data$iter), length.out = n_cuts + 1)
14. ├─base::seq.default(0, max(.data$iter), length.out = n_cuts + 1)
15. │ └─base::stop("'to' must be a finite number")
16. └─base::.handleSimpleError(...)
17. └─dplyr (local) h(simpleError(msg, call))
18. └─rlang::abort(message, class = error_class, parent = parent, call = error_call)
```
Here is my session info
```
R version 4.5.0 (2025-04-11 ucrt)
Platform: x86_64-w64-mingw32/x64
Running under: Windows 11 x64 (build 22631)
Matrix products: default
LAPACK version 3.12.1
locale:
[1] LC_COLLATE=Portuguese_Brazil.utf8 LC_CTYPE=Portuguese_Brazil.utf8
[3] LC_MONETARY=Portuguese_Brazil.utf8 LC_NUMERIC=C
[5] LC_TIME=Portuguese_Brazil.utf8
time zone: America/Sao_Paulo
tzcode source: internal
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] doRNG_1.8.6.2 rngtools_1.5.2 foreach_1.5.2 Robyn_3.12.1 DBI_1.2.3 odbc_1.6.1
[7] lubridate_1.9.4 forcats_1.0.0 stringr_1.5.1 dplyr_1.1.4 purrr_1.0.4 readr_2.1.5
[13] tidyr_1.3.1 tibble_3.3.0 ggplot2_3.5.2 tidyverse_2.0.0
loaded via a namespace (and not attached):
[1] gtable_0.3.6 shape_1.4.6.1 dotenv_1.0.3 websocket_1.4.4
[5] processx_3.8.6 lattice_0.22-6 tzdb_0.5.0 ps_1.9.1
[9] vctrs_0.6.5 tools_4.5.0 generics_0.1.4 parallel_4.5.0
[13] blob_1.2.4 pkgconfig_2.0.3 prophet_1.0 Matrix_1.7-3
[17] data.table_1.17.4 RColorBrewer_1.1-3 ggridges_0.5.6 RcppParallel_5.1.10
[21] lifecycle_1.0.4 compiler_4.5.0 farver_2.1.2 chromote_0.5.1
[25] codetools_0.2-20 yaml_2.3.10 glmnet_4.1-9 nloptr_2.2.1
[29] pillar_1.10.2 later_1.4.2 iterators_1.0.14 rpart_4.1.24
[33] tidyselect_1.2.1 rvest_1.0.4 zip_2.3.3 digest_0.6.37
[37] stringi_1.8.7 splines_4.5.0 rprojroot_2.0.4 fastmap_1.2.0
[41] grid_4.5.0 here_1.0.1 cli_3.6.5 magrittr_2.0.3
[45] patchwork_1.3.1 survival_3.8-3 withr_3.0.2 rappdirs_0.3.3
[49] lares_5.3.1 scales_1.4.0 promises_1.3.3 bit64_4.6.0-1
[53] timechange_0.3.0 httr_1.4.7 bit_4.6.0 rpart.plot_3.1.2
[57] reticulate_1.42.0 png_0.1-8 hms_1.1.3 openxlsx_4.2.8
[61] doParallel_1.0.17 rlang_1.1.6 Rcpp_1.0.14 glue_1.8.0
[65] xml2_1.3.8 pROC_1.18.5 rstudioapi_0.17.1 jsonlite_2.0.0
[69] R6_2.6.1 plyr_1.8.9
```
Contributor guide
Assessment
This issue has not been assessed yet.