Skip to content

Commit d763816

Browse files
committed
undo
1 parent 42f7ea7 commit d763816

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

R/data.table.R

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2942,8 +2942,6 @@ setDT = function(x, keep.rownames=FALSE, key=NULL, check.names=FALSE) {
29422942
} else if (is.list(x) && length(x)==1L && is.matrix(x[[1L]])) {
29432943
# a single list(matrix) is unambiguous and depended on by some revdeps, #3581
29442944
x = as.data.table.matrix(x[[1L]])
2945-
} else if (is.list(x) && length(x)==1L && isS4(x[[1L]])) {
2946-
x = as.data.table.data.frame(as.data.frame(x[[1L]]))
29472945
} else if (is.null(x) || (is.list(x) && !length(x))) {
29482946
x = null.data.table()
29492947
} else if (is.list(x)) {

0 commit comments

Comments
 (0)