I assume that it is testing to see if you are in the interactive mode (typically using RGUI or Rterm) and not a batch file. If it is interactive, it issues a 'stop' (this lets the person take action on the problem). If in the batch, it just terminates the execution of the script.
On Wed, Jul 30, 2008 at 4:44 AM, Kurapati, Ravichandra (Ravichandra) <[EMAIL PROTECTED]> wrote: > Hi > > Can any body explain the meaning of the following R code > > > > if(interactive()) > > stop(msg, call. = FALSE) > > else > > quit() > > > > Thanks > > K.Ravichandra > > > > > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list > 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. > -- Jim Holtman Cincinnati, OH +1 513 646 9390 What is the problem you are trying to solve? ______________________________________________ R-help@r-project.org mailing list 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.