At the following github is a test data set that should replicate the issue.
On a clean R session, the following seems to completely crash R from an memory violation:
load(file = "test.rdata")
data.table::rbindlist(test, idcol = "tid")
I'm running R version 3.4.1.
The issue seems to be when 'idcol' is used and there are empty data.tables in the list to be rbind'ed. I found the following workaround seems to produce the expected behaviour:
test2 <- Filter(function(dt) nrow(dt) != 0, test)
data.table::rbindlist(test2, idcol = "tid")
But it would be great if data.table handled this.
At the following github is a test data set that should replicate the issue.
On a clean R session, the following seems to completely crash R from an memory violation:
I'm running R version 3.4.1.
The issue seems to be when 'idcol' is used and there are empty data.tables in the list to be rbind'ed. I found the following workaround seems to produce the expected behaviour:
But it would be great if
data.tablehandled this.