Implements recommended fix in #84. Issue arises because in R 4.2.0 release news: "Calling if() or while() with a condition of length greater than one gives an error rather than a warning".
In previous versions of R multiple condition in a while would result in a warning and only evaluate the first element. This has been deprecated and will now result in an error, a short circuit && ensures that only the first element is evaluated and avoids an error.
Implements recommended fix in #84. Issue arises because in R 4.2.0 release news: "Calling if() or while() with a condition of length greater than one gives an error rather than a warning".
In previous versions of R multiple condition in a while would result in a warning and only evaluate the first element. This has been deprecated and will now result in an error, a short circuit && ensures that only the first element is evaluated and avoids an error.