[R] Exeption handling

Pablo Yabo pyabo at 2vias.com.ar
Mon Jan 5 12:25:41 CET 2004


ok, thanks.

----- Original Message ----- 
From: "Roger D. Peng" <rpeng at jhsph.edu>
To: "Pablo Yabo" <pyabo at 2vias.com.ar>
Cc: <r-help at stat.math.ethz.ch>
Sent: Saturday, January 03, 2004 9:16 PM
Subject: Re: [R] Exeption handling


> Try looking at ?try or ?tryCatch in R.
>
> -roger
>
> Pablo Yabo wrote:
>
> > but try is a C keyword, I writing code in R.
> > I need something like a try / catch block in C, but written in R.
> >
> > ----- Original Message ----- 
> > From: "Spencer Graves" <spencer.graves at pdf.com>
> > To: "Pablo Yabo" <pyabo at 2vias.com.ar>
> > Cc: <r-help at stat.math.ethz.ch>
> > Sent: Saturday, January 03, 2004 8:07 PM
> > Subject: Re: [R] Exception handling
> >
> >
> >
> >>have you considered "try"?  hope this helps.  spencer graves
> >>
> >>Pablo Yabo wrote:
> >>
> >>
> >>>Hi,
> >>>I want to know if it's possible to prevent that a stop call stops my
> >>>program.
> >>>I want to call a function that can fail calling a stop. But in that
case
> >
> > I
> >
> >>>want to keep the control and do something else, not stop the program
and
> >>>print a message.
> >>>Is that possible?
> >>>
> >>>Thanks, in advance
> >>>
> >>>Pablo Yabo
> >>>
> >>>______________________________________________
> >>>R-help at stat.math.ethz.ch mailing list
> >>>https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> >>>
> >>>
> >>
> >
> > ______________________________________________
> > R-help at stat.math.ethz.ch mailing list
> > https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> >




More information about the R-help mailing list