[R] for loop the can be skipped

2010-02-11 Thread Fabrizio Pollastri
Hello, there is compact way to skip a for loop when the requested number of iterations is 0 ? For example, something equivalent to the following code: for (i in some_function(from=1,to=iteration_cycles)) { ... } Where the loop is skipped when iteration_cycles==0 Thanks in advance. F: Pollas

[R] how to read script name in littler

2010-01-07 Thread Fabrizio Pollastri
Hello, I am using littler to run my R code and I was looking for a way to read the running script name, but neither "argv" nor "commandArgs()" give me this information. Any suggestion? Thanks in advance. F. Pollastri __ R-help@r-project.org mailing