Why is purr::is_numeric() deprecated

purrr

#1

In purrr version 0.2.4 I see that is_numeric() is deprecated:

is_numeric
function (x) 
{
    warning("Deprecated", call. = FALSE)
    is_integer(x) || is_double(x)
}
<environment: namespace:purrr>

the reason is not clear to me and I was wondering what is the alternative suggested


#2

Not sure if you’re looking at the source code on your computer, or GitHub, but the explanation and its source should be the same either way (see the comments above the function)


#4

Thanks for such great tools.
I don’t fully understand why people use is_numeric and not mean integer or double as in the explanation.
However I do feel a loss (small but still) in changing how to use it, as it does make the code readable and concise.
My two cents.