Skip to content

Commit 8646d86

Browse files
committed
Rf_isNull -> isNull for <3.5 compatibility
1 parent 6e458bb commit 8646d86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/assign.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ SEXP setdt_nrows(SEXP x)
215215
* many operations still work in the presence of NULL columns and it might be convenient
216216
* e.g. in package eplusr which calls setDT on a list when parsing JSON. Operations which
217217
* fail for NULL columns will give helpful error at that point, #3480 and #3471 */
218-
if (Rf_isNull(xi)) continue;
218+
if (isNull(xi)) continue;
219219
if (Rf_inherits(xi, "POSIXlt")) {
220220
error(_("Column %d has class 'POSIXlt'. Please convert it to POSIXct (using as.POSIXct) and run setDT() again. We do not recommend the use of POSIXlt at all because it uses 40 bytes to store one date."), i+1);
221221
}

0 commit comments

Comments
 (0)