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
The elementNROWS,ANY() calls the C-level sapply_NROWS(), relying on an error condition to fallback to the safe vapply(., NROWS, ...) path. Unfortunately, sapply_NROWS() will succeed (with a generally incorrect result) for any "object" that is implemented by a vector, including lists (very common). We could dispatch to NROWS() in that case, but it the simplest fix would be to fail whenever IS_OBJECT() is TRUE.
Like
if (!IS_VECTOR(x) || IS_OBJECT(x))
error("get_NROW() defined only on a vector (or NULL)");
The text was updated successfully, but these errors were encountered:
The
elementNROWS,ANY()
calls the C-levelsapply_NROWS()
, relying on an error condition to fallback to the safevapply(., NROWS, ...)
path. Unfortunately,sapply_NROWS()
will succeed (with a generally incorrect result) for any "object" that is implemented by a vector, including lists (very common). We could dispatch toNROWS()
in that case, but it the simplest fix would be to fail wheneverIS_OBJECT()
isTRUE
.Like
The text was updated successfully, but these errors were encountered: