Dear members,
                            I have a script which I source it interactively. I 
have the following questions:


  1.  If there is an error in an expression, an error message is printed, but 
the execution continues till the end of the script. I am sourcing with echo. Is 
there any way to abort the execution when the first error occurs? This happens 
with R CMD BATCH. If there is an error midway, an error message is printed in 
the output file and the execution aborts. Is there a way to mimic this with 
source()?
  2.  I am trying to abort the execution with ESC key, but again the same thing 
happens: it aborts the current expression but continues on. How to abort an R 
script with source()? I am using RStudio in windows.

Please help,

THanking you,
Yours sincerely,
AKSHAY M KULKARNI

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.

Reply via email to