-
Notifications
You must be signed in to change notification settings - Fork 350
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
Failed to generate one pagers when ts_validation is enabled in 3.9.0 #596
Comments
Morning team, just checking back in, is a fix almost there? :) |
hi @yanhong-zhao-ef thank you for raising this issue and providing your code and example! Working on a fix this week. Stay tuned! |
Hi alll, @yanhong-zhao-ef, you can use <<- to assing the OutputModels meanwhile they can solve the issue: @michellegrushkometa, maybe you can check the plot.R file. In the line 225, the code fails because OutputModels is not defined (It isn't a function parameter). You can access to than with OutputCollect$OutputModels. The code:
|
Thanks @breogancid I can patch up the code locally but I would rather get the official release from the team. Btw I did try that one OutputCollect$OutputModels but then this object is modified in a previous step so a naive fix didn't work for me. |
The bug was found and will be patched up later today. In short, |
Hi @yanhong-zhao-ef, @breogancid thanks for your patience! I've just landed the fix for this issue. We tested for |
Thank you for the fix and can confirm that the whole thing runs now! |
Project Robyn
Describe issue
When enabling ts_validation for OutputModels, robyn_outputs doesn't output the one-pager plots in the plot folder with the following error in the stack trace
This is due to the lines in
robyn_plots
(shown below).robyn_plots
is called byrobyn_outputs
whereOutputModels
is not explicitly supplied as an argument torobyn_plots
:I tried modifying the lines above to read from
OutputCollect$OutputModels
instead ofOutputModels
butOutputCollect$OutputModels
was modified earlier in the robyn_outputs function, therefore, doesn't contain resultCollect anymore to extract from for thets_validation
function.The quick fix where I changed the function signature of robyn_plot to
function (InputCollect, OutputCollect, OutputModels, export = TRUE, ...)
and called it in robyn_outputs withall_plots <- robyn_plots(InputCollect, OutputCollect, OutputModels, export = export)
worked out fine.Running through demo.R as it is doesn't show this bug but we are orchestrating Robyn in another script like
source(robyn_func.R)
where we wraprobyn_run
androbyn_outputs
in functions.Please see attached demo_debug.txt to see a reproducible example where I just wrap those two functions calls (robyn_run and robyn_outputs) into a function and the bug reveals.
Provide reproducible example
demo_debug.txt
Environment & Robyn version
Make sure you're using the latest Robyn version before you post an issue.
packageVersion("Robyn")
‘3.9.0’sessionInfo()
orR.version$version.string
) R version 4.2.2 (2022-10-31)The text was updated successfully, but these errors were encountered: