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. Regards, Pang Zhen
Zhen Pang wrote:> 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.400 lines of input isn't large. Were there any error messages? Jason -- Indigo Industrial Controls Ltd. http://www.indigoindustrial.co.nz 64-21-343-545 jasont at indigoindustrial.co.nz
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.There are some buffer limits (at least on Windows). Use source() for the main part of those 400 lines. Uwe Ligges> Regards, > > Pang Zhen > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help
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