You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When fread has to bump many columns to a different data type, R can crash. This dataset with 10k rows and 40 columns makes R consistently crash:
library(data.table)
# Create a character column that is mostly empty,
# so it gets bumped.
x <- character(1e4)
x[9994] <- "+"
# For very powerful machines, you might need to
# increase the number of rows a little.
dfr <- as.data.frame(
replicate(40, x, simplify = FALSE)
)
write.table(dfr, "test.txt", quote = FALSE)
fread("test.txt")
The text was updated successfully, but these errors were encountered:
Fixed in v1.9.4 on CRAN. Have added this one into the same item - thanks.
Fixed seg fault in sparse data files when bumping to character, #796 and #722. Thanks to Adam Kennedy and Richard Cotton for the detailed reproducible reports.
When fread has to bump many columns to a different data type, R can crash. This dataset with 10k rows and 40 columns makes R consistently crash:
The text was updated successfully, but these errors were encountered: