You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if statement in R/xts.R may use length > 1 objects and so may cause an warning/error if the _R_CHECK_LENGTH_1_LOGIC2_ is set or at the very least silently ignore other elements of class(order.by).
Only the first element of class(order.by) is used in the if statement.
This will emit an error or warning when the environment variable
_R_CHECK_LENGTH_1_LOGIC2_ is true. We should make this explicit to
avoid the error or warning.
Fixesjoshuaulrich#270.
Description
if
statement inR/xts.R
may use length > 1 objects and so may cause an warning/error if the_R_CHECK_LENGTH_1_LOGIC2_
is set or at the very least silently ignore other elements ofclass(order.by)
.Expected behavior
No warning or error
Minimal, reproducible example
Session Info
The text was updated successfully, but these errors were encountered: