We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 338711a commit 008abefCopy full SHA for 008abef
src/utils.c
@@ -513,10 +513,7 @@ bool perhapsDataTable(SEXP x) {
513
return isDataTable(x) || isFrame(x) || isDataList(x);
514
}
515
SEXP perhapsDataTableR(SEXP x) {
516
- SEXP ans = PROTECT(allocVector(LGLSXP, 1));
517
- LOGICAL(ans)[0] = (int)perhapsDataTable(x);
518
- UNPROTECT(1);
519
- return ans;
+ return ScalarLogical(perhapsDataTable(x));
520
521
522
void internal_error(const char *call_name, const char *format, ...) {
0 commit comments