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
Convert 'i' to integer in the R code to avoid issues when it's passed
to the C code. I couldn't get this to crash like I could with the code
for 'j', but it caused incorrect results when values in 'i' were set
to zero during conversion to integer.
See #413.
We need to convert 'i' and 'j' to integer if they're numeric with a
fractional component. This was only being done when 'i' and 'j' were
positive.
Also fix the if-statement. sum() could have returned NA and it's better
to use isTRUE() and any() anyway.
Fixes#415. See #413.
Yes this is silly, but it shouldn't crash the R session.
The text was updated successfully, but these errors were encountered: