Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/any_missing.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ R_xlen_t attribute_hidden find_missing_integerish(SEXP x) {
case LGLSXP: return find_missing_logical(x);
case INTSXP: return find_missing_integer(x);
case REALSXP: return find_missing_double(x);
default: error("Error in find_missing_integerish: x must be logical or numeric");
case CPLXSXP: return find_missing_complex(x);
default: error("Error in find_missing_integerish: x must be logical, numeric, or complex");
}
}

Expand Down
2 changes: 2 additions & 0 deletions tests/testthat/test_qassert.R
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ test_that("integerish", {
expect_fail_all(xi, "X")
expect_succ_all(xr, "x")
expect_fail_all(xr, "X")
expect_succ_all(xc, "x")
expect_fail_all(xc, "X")
expect_fail_all(1:3+.0001, "x")
expect_fail_all(xd, "x")
})
Expand Down