facebookexperimental / facebookexperimental/Robyn
error in `refreshAddedStartWhich:rollingWindowLength` when refreshing the model
- Dominant language
- Jupyter Notebook
- Stars
- 1.5k
- Forks
- 433
- PR merge metrics
- No merged PRs in 30d
Description
Hello.
When refreshing the model, I'm getting this error:
Error in `slice()`:
ℹ In argument: `refreshAddedStartWhich:rollingWindowLength`.
Caused by error in `refreshAddedStartWhich:rollingWindowLength`:
! argument of length 0
---
Backtrace:
▆
1. ├─Robyn::robyn_refresh(...)
2. │ └─Robyn::robyn_run(...)
3. │ └─Robyn::robyn_train(...)
4. │ └─Robyn::robyn_mmm(...)
5. │ └─select(dt_inputTrain, all_of(paid_media_spends)) %>% ...
6. ├─dplyr::slice(., refreshAddedStartWhich:rollingWindowLength)
7. ├─dplyr:::slice.data.frame(., refreshAddedStartWhich:rollingWindowLength)
8. │ └─dplyr:::slice_rows(.data, dots, by)
9. │ └─dplyr:::slice_eval(mask, dots, error_call = error_call, user_env = user_env)
10. │ ├─base::withCallingHandlers(...)
11. │ └─mask$eval_all(quo(impl(!!!dots)))
12. ├─dplyr (local) impl(refreshAddedStartWhich:rollingWindowLength)
13. │ └─dplyr:::...elt2(i)
14. │ └─rlang::eval_bare(sym(paste0("..", i)), frame)
15. ├─refreshAddedStartWhich:rollingWindowLength
16. └─base::.handleSimpleError(``, "argument of length 0", base::quote(refreshAddedStartWhich:rollingWindowLength))
17. └─dplyr (local) h(simpleError(msg, call))
18. └─rlang::abort(bullets, call = error_call, parent = cnd)
Here is what it looks like.

Here is the data I used:
[raw_data_refreshed_data_aug2024_included.csv](https://github.com/user-attachments/files/16947039/raw_data_refreshed_data_aug2024_included.csv)
[RobynModel-4_128_1.json](https://github.com/user-attachments/files/16947040/RobynModel-4_128_1.json)
thank you for any help
Contributor guide
Assessment
This issue has not been assessed yet.