[R] command line limit under unix?

Prof Brian Ripley ripley at stats.ox.ac.uk
Fri Oct 10 10:02:57 CEST 2003


On Fri, 10 Oct 2003, Zhen Pang wrote:

> Dear all,
> 
> I have made my testing program to run successfully under unix in the 
> background. However, my simulation work does not work. I read the 
> foo.results file, I found it only have part of my code and not any output I 
> want. Is there any line limit? My code is nearly 400 line. I can cut some of 
> them, but I want to know whether there is any limit or exactly the number of 
> limit is. Thanks.

If you are running a script by R CMD BATCH (or otherwise by redirectin) 
there is no limit on the number of lines (apart from file sizes on your 
OS) and I have used several tens of thousands of lines with auto-generated 
scripts.

There is a limit on the length of command lines, I believe 1024 chars on 
all implementations of R.

-- 
Brian D. Ripley,                  ripley at 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




More information about the R-help mailing list