You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
without having to condition the code on length(X) == 0.
See also
This is related to #79 ('Segfault when total=0') and probably also to #111 ('Error when total = NA and format contains :bar'). However, since #79 is on native code and segfault, and my example is a pure R problem, I decided to post it as a standalone issue
The text was updated successfully, but these errors were encountered:
Issue
Troubleshooting
This happens because
pb_ratio()
returnsNaN
(as also pointed out in #111 and #79)Patch
A patch would be:
Session info
Background
It's useful to be able to create zero-length progress bars. This way one could do:
without having to condition the code on
length(X) == 0
.See also
This is related to #79 ('Segfault when total=0') and probably also to #111 ('Error when total = NA and format contains :bar'). However, since #79 is on native code and segfault, and my example is a pure R problem, I decided to post it as a standalone issue
The text was updated successfully, but these errors were encountered: