Re: [R] Input buffer overflow

From: Gabor Grothendieck <ggrothendieck_at_gmail.com>
Date: Tue 17 Oct 2006 - 21:47:22 GMT

No one answered this question but to answer my own question I did notice that since I posted this, there have been changes to parse.Rd in the development version of R:

  https://svn.r-project.org/R/trunk/src/library/base/man/parse.Rd

indicating:

  "a limit of 8192 bytes on the size of strings which can be parsed."

On 10/15/06, Gabor Grothendieck <ggrothendieck@gmail.com> wrote:
> In gsubfn I replace matches with strings that represent calls to a function
> and then perform paste(eval(parse(text= ...)), collapse = "") on the result.
> One user of gsubfn is using it with very long strings (over 20,000 characters)
> and the parse is giving an input buffer overflow. Here is an
> artificial example:
>
> > s <- paste(rep("X", 25000), collapse = "")
> > out <- parse(text = shQuote(s))
> Error in parse(text = shQuote(s)) : input buffer overflow
>
> Is there a way to increase the limit?
>



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Wed Oct 18 08:14:41 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 17 Oct 2006 - 22:30:10 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.