data.table::fread() is faster than readLines, even when single-threaded.
It's also more flexible, as it doesn't require tab-delimited format, and instead infers the format and imports accordingly. This means we can get rid of the check_tab_delimited() step.
data.table::fread()
is faster thanreadLines
, even when single-threaded.It's also more flexible, as it doesn't require tab-delimited format, and instead infers the format and imports accordingly. This means we can get rid of the
check_tab_delimited()
step.