[R] How could I terminate a script (without leaving R)?

2009-05-28 Thread Mario Valle
Good morning! Which is the preferred method to leave a sourced script and returning back to the '' prompt? For example I search for certain files to be processed, but nothing should be done if they are not present. Normally I do in my script: f-dir(pattern=qq) if(length(f) 0) { ...process

Re: [R] How could I terminate a script (without leaving R)?

2009-05-28 Thread Duncan Murdoch
On 5/28/2009 8:58 AM, Mario Valle wrote: Good morning! Which is the preferred method to leave a sourced script and returning back to the '' prompt? For example I search for certain files to be processed, but nothing should be done if they are not present. Normally I do in my script: