[R] Very long console input lines

Thomas Lumley tlumley at u.washington.edu
Fri Sep 19 17:33:09 CEST 2003


On Fri, 19 Sep 2003 alessandro.valli at amd.com wrote:

> Thank you Spencer,
> but it seems not to work with strings :
>
> myquery <- c("select ..... very long string 		=> gives syntax error
> myquery <- {c("select ..... very long string		=> gives syntax error
>

I think you will have to rewrite this somehow.  If you have a known  upper
limit on line length you could modify the limit in the R source, but it's
probably easier to put the
  "select .... very long string
into a separate file and use readLines() on it, bypassing the limit in the
parser.

	-thomas




More information about the R-help mailing list