<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body>
<p> </p>
<p>Interesting, what's your sessionInfo() please?</p>
<p>For me it seems to work ok :</p>
<pre>[1] 1022
[1] 1023
[1] 1024
[1] 9999<br /><br /></pre>
<pre>> sessionInfo()<br />R version 2.15.2 (2012-10-26)<br />Platform: x86_64-w64-mingw32/x64 (64-bit)</pre>
<p> </p>
<p>On 27.03.2013 22:49, Timothée Carayol wrote:</p>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div dir="ltr">
<div class="gmail_default" style="font-family: arial,helvetica,sans-serif;">Agree with Muhammad, longer character strings are definitely permitted in R.</div>
<div class="gmail_default" style="font-family: arial,helvetica,sans-serif;">A minimal example that show something strange happening with fread:</div>
<div class="gmail_default">
<div class="gmail_default"><span style="font-family: arial, helvetica, sans-serif;">for (n in c(1023:1025, 10000)) {</span></div>
<div class="gmail_default"><span style="font-family: arial, helvetica, sans-serif;"> A </span></div>
<div class="gmail_default"><span style="font-family: arial, helvetica, sans-serif;"> paste(</span></div>
<div class="gmail_default"><span style="font-family: arial, helvetica, sans-serif;"> rep('a\tb\n', n),</span></div>
<div class="gmail_default"><span style="font-family: arial, helvetica, sans-serif;"> collapse=''</span></div>
<div class="gmail_default"><span style="font-family: arial, helvetica, sans-serif;"> ),</span></div>
<div class="gmail_default"><span style="font-family: arial, helvetica, sans-serif;"> sep='\t'</span></div>
<div class="gmail_default"><span style="font-family: arial, helvetica, sans-serif;"> )</span></div>
<div class="gmail_default" style="font-family: arial,helvetica,sans-serif;"> print(nrow(A))</div>
<div class="gmail_default" style="font-family: arial,helvetica,sans-serif;">}</div>
<div class="gmail_default" style="font-family: arial,helvetica,sans-serif;">On my computer, I obtain:</div>
<div class="gmail_default">
<div class="gmail_default"><span style="font-family: arial, helvetica, sans-serif;">[1] 1022</span></div>
<div class="gmail_default"><span style="font-family: arial, helvetica, sans-serif;">[1] 1023</span></div>
<div class="gmail_default"><span style="font-family: arial, helvetica, sans-serif;">[1] 1023</span></div>
<div class="gmail_default"><span style="font-family: arial, helvetica, sans-serif;">[1] 1023</span></div>
</div>
<div class="gmail_default" style="font-family: arial,helvetica,sans-serif;">Hope this helps</div>
<div class="gmail_default" style="font-family: arial,helvetica,sans-serif;">Timothée</div>
</div>
</div>
<div class="gmail_extra"><br /><br />
<div class="gmail_quote">On Wed, Mar 27, 2013 at 9:23 PM, Matthew Dowle <span><<a href="mailto:mdowle@mdowle.plus.com">mdowle@mdowle.plus.com</a>></span> wrote:<br />
<blockquote class="gmail_quote" style="margin: 0 0 0 .8ex; border-left: 1px #ccc solid; padding-left: 1ex;">Hi,<br /> Nice to hear from you. Nope not known to me. Obviously 4096 is 4k, is that<br /> the R limit for a character string length? What happens at 4097?<br /> Matthew<br />
<div>
<div class="h5"><br /> > Hi,<br /> ><br /> > I have an example of a string of 4097 characters which can't be parsed by<br /> > fread; however, if I remove any character, it can be parsed just fine. Is<br /> > that a known limitation?<br /> ><br /> > (If I write the string to a file and then fread the file name, it works<br /> > too.)<br /> ><br /> > Let me know if you need the string and/or a bug report.<br /> ><br /> > Thanks<br /> > Timothée</div>
</div>
> _______________________________________________<br /> > datatable-help mailing list<br /> > <a href="mailto:datatable-help@lists.r-forge.r-project.org">datatable-help@lists.r-forge.r-project.org</a><br /> > <a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help</a><br /><br /><br /></blockquote>
</div>
</div>
</blockquote>
<p> </p>
<div> </div>
</body></html>