data.table fread() sometimes crashes the R session -


data.table fread() crashes r session when reading tab-separated or csv files. happens deterministically depending on input file.

> fread('c:/temp/single_cell_ia.txt', verbose = true) input contains no \n. taking filename open file opened, filesize 0.000099 gb. memory mapping ... ok detected eol \n (no \r afterwards), unix , mac standard. positioned on line 1 after skip or autostart line autostart , not blank searching last non-blank ... line 1 detecting sep ...  

[r session crashes here]

files give problems fread() can read read.delim() or read.csv() without problems. have performed number of tests tab-separate file , observed following:

problem solved:

  • open in excel (make no changes) , save again tab-separated text file
  • replace text in header other text of different length using sed command under unix
  • replace text in header other text of different length using search --> find --> replace menu in notepad++ under windows

problem not solved:

  • make copy of file
  • open in notepad++ (make no changes) , "save as..."
  • replace text in header other text of same length using sed command under unix
  • replace text in header other text of same length using search --> find --> replace menu in notepad++ under windows

i couldn't create small artificial example problem occurs post here i'm happy send on file used testing (104 kb; 14 rows; 803 columns)

thanks, steffen.

> sessioninfo() r version 3.3.3 (2017-03-06) platform: x86_64-w64-mingw32/x64 (64-bit) running under: windows 7 x64 (build 7601) service pack 1  locale: [1] lc_collate=english_australia.1252  lc_ctype=english_australia.1252    lc_monetary=english_australia.1252 [4] lc_numeric=c                       lc_time=english_australia.1252      attached base packages: [1] stats     graphics  grdevices utils     datasets  methods   base       other attached packages: [1] data.table_1.10.4  loaded via namespace (and not attached): [1] tools_3.3.3 


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -