Skip to content

Commit d71c515

Browse files
committed
allow matrix frev
1 parent e9f30e5 commit d71c515

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

inst/tests/tests.Rraw

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21397,7 +21397,6 @@ test(2327.55, attr(frev(x), "att"), attr(rev(x), "att"))
2139721397
# errors
2139821398
test(2327.61, frev(data.table()), error="should not be data.frame or data.table")
2139921399
test(2327.62, frev(expression(1)), error="is not supported by frev")
21400-
test(2327.63, frev(matrix(1)), error="should not be matrix or array")
2140121400
if (test_bit64) {
2140221401
x = as.integer64(c(1, NA, 3))
2140321402
test(2327.71, frev(x), rev(x))

src/utils.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -546,8 +546,6 @@ SEXP frev(SEXP x, SEXP copyArg) {
546546
SEXP names, klass, levels;
547547
if (INHERITS(x, char_dataframe))
548548
error(_("'x' should not be data.frame or data.table."));
549-
if (!isNull(getAttrib(x, R_DimSymbol)))
550-
error(_("'x' should not be matrix or array"));
551549
if (!IS_TRUE_OR_FALSE(copyArg))
552550
error(_("%s must be TRUE or FALSE."), "copy"); // # nocov
553551
bool copy = LOGICAL(copyArg)[0];

0 commit comments

Comments
 (0)