Not sure if this is expected behavior, but when using expected_plot(), I will get an error (Error in if (!attr(expected, "frequency") %in% c(365, 52)) warning("This function assumes weekly or daily data. This dataset has ", : argument is of length zero) if the object comes from compute_expected(..., keep.components = TRUE) but not if keep.components = FALSE despite all other parameters (and data) being identical.
If expected behavior, I think a more descriptive error would be helpful?
Not sure if this is expected behavior, but when using
expected_plot()
, I will get an error (Error in if (!attr(expected, "frequency") %in% c(365, 52)) warning("This function assumes weekly or daily data. This dataset has ", : argument is of length zero
) if the object comes fromcompute_expected(..., keep.components = TRUE)
but not ifkeep.components = FALSE
despite all other parameters (and data) being identical.If expected behavior, I think a more descriptive error would be helpful?