Re: [R] Input buffer overflow

From: Gabor Grothendieck <>
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:


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

On 10/15/06, Gabor Grothendieck <> 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?
> mailing list PLEASE do read the posting guide 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 Please read the posting guide before posting to the list.