Skip to content

Commit 1b363ad

Browse files
Need isFrame for now
1 parent 9a51230 commit 1b363ad

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/utils.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -507,9 +507,10 @@ bool isDataList(SEXP x) {
507507
return isNewList(x) && (!LENGTH(x) || (equalLens(x) && !isNull(getAttrib(x, R_NamesSymbol))));
508508
}
509509

510-
// isDataTable(x) || isDataFrame(x) || isDataList(x)
510+
// TODO: use isDataFrame (when included in any R release).
511+
// isDataTable(x) || isFrame(x) || isDataList(x)
511512
bool perhapsDataTable(SEXP x) {
512-
return isDataTable(x) || isDataFrame(x) || isDataList(x);
513+
return isDataTable(x) || isFrame(x) || isDataList(x);
513514
}
514515
SEXP perhapsDataTableR(SEXP x) {
515516
SEXP ans = PROTECT(allocVector(LGLSXP, 1));

0 commit comments

Comments
 (0)