Skip to content
Prev 3272 / 12125 Next

[R-pkg-devel] testing coercion

Thanks for the suggestion. But it may not be quite expressive enough; I
think I will instead use

 > ifelse(getRversion() < "3.6.0",
 >           ! canCoerce(wv, "double"),   # fails in older versions
 >              canCoerce(wv, "double"))  # works in newer versions

That way, when I update the package six months from now, I might have a
chance of remembering what was going on.

Best,
   Kevin
On 12/6/2018 11:41 AM, Sebastian Meyer wrote: