[datatable-help] bug is fread ?

Arunkumar Srinivasan aragorn168b at gmail.com
Wed Aug 5 13:52:00 CEST 2015


Yes. (Known) bug. Will fix.

-- 
Arun

On 5 Aug 2015 at 13:50:31, statquant3 (statquant at outlook.com) wrote:

Trying to read the following csv:  

date,time,name,propertyValue,programName  
20150804,07:17:22.928,aerhqer,strjhwr,adtrhadtr  
20150804,07:17:22.928,A__z,"*SHLVL="*TMOUT,datrhnaetrh  
20150804,07:17:22.928,adrhae,true,adthad  

R) fread('test.csv')  
Error in fread("/u/delta1/colinu/test/freadTest/PropertiesLog.csv") :  
Field 4 on line 3 starts with quote (") but then has a problem. It can  
contain balanced unescaped quoted subregions but if it does it can't contain  
embedded \n as well. Check for unbalanced unescaped quotes:  
"*SHLVL="*TMOUT,datrhnaetrh  

read.csv2 works...  

R)  
setDT(read.csv2(file='/u/delta1/colinu/test/freadTest/PropertiesLog.csv',sep=','))[]  
date time name propertyValue programName  
1: 20150804 07:17:22.928 aerhqer strjhwr adtrhadtr  
2: 20150804 07:17:22.928 A__z *SHLVL=*TMOUT datrhnaetrh  
3: 20150804 07:17:22.928 adrhae true adthad  

Can you guys reproduce, can that be considered a bug ?  
If not how can I trick fread in reproducing read.csv2 ?  




--  
View this message in context: http://r.789695.n4.nabble.com/bug-is-fread-tp4710776.html  
Sent from the datatable-help mailing list archive at Nabble.com.  
_______________________________________________  
datatable-help mailing list  
datatable-help at lists.r-forge.r-project.org  
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/datatable-help/attachments/20150805/bf9f3a17/attachment.html>


More information about the datatable-help mailing list