Skip to content
Prev 33875 / 63424 Next

Missing warning when NAs are generated during coercion to complex (PR#13942)

Hello all,

I ran into this today and just thought you guys should know about it.
Consider the following:

as(c("TRUE", "TRUE"), "complex") #warning about NAs
as(list("TRUE", "TRUE"), "complex") #no warning

At first I thought that it was something about it being a list, but then I
tried

as(list("TRUE", "TRUE"), "integer") #warning about NAs

which suggests that it was an oversight. Not a critical issue (though it did
give me quite a bit of headache earlier today), but figured I should report
it.

Thanks for all your hard work.

Gabe