Skip to content
Prev 8518 / 63424 Next

vector arguments to if()

The current R-devel now warns about passing vectors of length > 1 to if().
There seem to be a *lot* of such misuses amongst packages, including in
the recommended packages lattice and mgcv.  Since S warns, this is almost
entirely confined to packages originally written for R.

Would package developers please check their packages under R-devel at
their convenience.  I would be interested to hear of any misuses in R
itself: several have come to light but more may be lurking.