Open MilesMcBain opened 6 years ago
Sorry for the delay replying to this. A patch along the lines you've suggested would be great, though it's now not merging, so I'd appreciate it if you could take another look. If it were possible to include the reproducible example as a test, that would be great too, but don't worry. Ideally it would not use the tidyverse & magrittr libraries.
Ah - hold that! I should look at the earlier NA-related patch first https://github.com/davidcsterratt/RTriangle/pull/9
The issue that
PB
is a numeric vector, whichis.na()
is vectorised over. Soif()
sees a vector ofFALSE
which rightly throws a warning in newer versions of R.Here's a Reprex: