}
// if (s.length() > 1) {
// Warning.invokeWarning(context, call, "the condition has length > 1 and only the first element will be used");
// }
Logical logical = s.asLogical();
if (logical == Logical.NA) {
throw new EvalException("missing value where TRUE/FALSE needed");
}
return logical == Logical.TRUE;