Re: [R] Command line cut-off

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
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.

https://stat.ethz.ch/pipermail/r-devel/2006-August/038985.html

> 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,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595


______________________________________________ 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 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 https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.