R v 4.3.0: vectors in `if`, `&&` or `||` give an error
Closed this issue · 0 comments
alko989 commented
It happens at least in the manage
function where it checks for the fractiles. Affects everyone using R >= 4.3.0
Background:
In R version 4.3.0, if
, &&
and ||
do not allow for vectors anymore - used to be a warning.
Calling && or || with LHS or (if evaluated) RHS of length greater than one is now always an error, with a report of the form
'length = 4' in coercion to 'logical(1)'
Environment variable R_CHECK_LENGTH_1_LOGIC2 no longer has any effect.