[R] need some help

jim holtman jholtman at gmail.com
Wed Jul 30 11:35:10 CEST 2008


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)
<ravichandra.kurapati at alcatel-lucent.com> 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 at 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?



More information about the R-help mailing list