Skip to content
Prev 5115 / 12125 Next

[R-pkg-devel] [FORGED] Re: Help on Windows CRAN Check

On 05.03.2020 09:45, Rolf Turner wrote:
Oh dear, but this time it is true...:
Right, and as the conditions are scalar, we never have to evaluate the 
2nd if the first is FALSE unless you do it for side effects.

So for logical operators on scalar logical vectors, one should prefer && 
and || for efficeincy reasons.

Best,
Uwe