Re: [R] Command line cut-off

From: Prof Brian Ripley <>
Date: Mon 04 Sep 2006 - 09:16:28 GMT

On Mon, 4 Sep 2006, Björn Thalheim wrote:

> Hi,
> I noticed that, when working with R on a command line, I cannot enter
> anything into the command line which is longer than 1023 characters.

Actually, 1000 or 1022 or 1023 bytes, and it depends on your 'command line' (and you have not even told us your OS).

You will find details in the R-devel list archives, e.g.

> If I input sth longer, it'l be just cut off at this lenght, and a "+"
> will be presented to me on the command line.
> It's not as bad since I can copy'n'paste commands longer than this with
> newline characters in between onto the prompt, but still kind of annoying.

How do you think thousands users of R for a decade have managed? What are you doing that needs 'commands' (R has function calls) longer than 1000 or so characters that need to be on one line?

> Does anybody know how I can make my command line accept lines longer
> than 1023 characters?

See the R-devel version of R for a full description: on some consoles it works there.

Brian D. Ripley,        
Professor of Applied Statistics,
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________ mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code.

Received on Mon Sep 04 19:46:39 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 Thu 07 Sep 2006 - 07:51:18 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.