-
Notifications
You must be signed in to change notification settings - Fork 9
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
Intended behavior when data_ice has no rows #460
Comments
Heya, Thanks for reporting. That definitely looks like a bug so will take a look. Double checking the documentation and my notes I believe the intended default behaviour is that if any subject is missing from @nociale - Just wanted to double check what I've written still meets your expectations? The error is a bit suspicious to me though as we actually had a bug with that section of the code that we fixed when releasing v1.3.0 #432 |
@gowerc Thanks! Please note that I haven't tested it yet in v1.3.0. We are still on v1.2.6 in our system. |
Ok yer this appears to be an edge case bug that was fixed with the changes we made in v1.3.0 though I'll add in some additional unit tests to hopefully guard against it accidentally being re-introduced again later. So (based on the current code implementation rather than expectation) internally we create an object called The bug here was that we had a flag variable But yer this is all fixed in v1.3.0. A simple workaround if you aren't able to upgrade to v1.3.0 should be to just include at least 1 subject in the Apologies for the inconvenience. |
@tobiasmuetze - I'll close this as we've already applied the fix but please feel free to re-open if you have any additional followup questions |
Describe the bug
I am trying to understand the intended behavior of
draws()
when thedata_ice
argument has no rows. When creatingdata_ice
results in a tibble or data.frame with 0 rows, thendraws()
gives the error "Error in longdata$set_strategies(data_ice) : object 'has_nonMAR_to_MAR' not found"This is not a particular helpful error for debugging. I am wondering 1) whether this has to result in an error or if a warning might be more appropriate, and 2) if it has to result in an error, could this be made more meaningful?
To Reproduce
I'll use the code from the vignette as an example.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: