Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in refreshAddedStartWhich:rollingWindowLength when refreshing the model #1049

Open
andrew99666 opened this issue Sep 10, 2024 · 0 comments

Comments

@andrew99666
Copy link

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(<fn>, "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.
image

Here is the data I used:
raw_data_refreshed_data_aug2024_included.csv
RobynModel-4_128_1.json

thank you for any help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant