Closed earcanal closed 1 year ago
Removing Weight
fixes this for me:
rob_traffic_light(data = rob2 %>% select(-Weight), psize=5, tool = "ROB2")
rob_traffic_light(data = robins %>% select(-Weight), psize=5, tool = "ROBINS-I")
Hi @earcanal,
Thanks for your message - this is expected behaviour in the newest (0.3.0.900
) version of robvis
, and is documented as a breaking change in the ChangeLog:
There are now stricter conditions placed on the data provided to robvis based on the options specified, which also address some niche cases which were causing bugs. Informative messages are provided to users if the data is not compatible with their chosen options. Existing code may have to be updated - I am sorry for this, but this should make it easier to support long-term stability of the API
As rob_traffic_light()
does not require weights to produce the plot, passing a dataframe with a weight column gives the error above.
This change forms part of a major overhaul of the codebase in 0.3.0.900
to a) address some silly decisions I made in setting the default values (e.g. setting weighted = TRUE
in rob_summary()
), b) standardise arguments across exisiting functions,, c) allow for handling of niche edge cases that was not possible under the old systme, and d) allow for substantially easier maintainece and addition of additional functionality in the future. While I appreciate that the changes may cause some issues for existing users, I made the decision that they were worth it for the long-term health of the project.
I'd be very interested to hear your feedback on the "informative messages" that accompany the error? Did you find them useful, and is there anything I could add or phrase differently to make it easier for users to know what is going on?
Thanks for clarifying. I think the error message is clear, but it seems to conflict with the docs (see above) which still refer to 8 columns (including 'weights').
Ah I see - I'll update the docs to accurately reflect the changes! Thanks @earcanal
@earcanal - just confirming this has finally been addressed!
Thanks again for flagging the issue 😃
rob_traffic_light()
has been working with my 8-column (Study, D1-D5, Overall, Weight) data frame for quite a while. I upgradedrobvis
from this repo today and I now get the following error:The docs say:
Here's my
SessionInfo
: