Re: [R] How to catch an error using try

2009-08-04 Thread ONKELINX, Thierry
k bericht- Van: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] Namens mau...@alice.it Verzonden: maandag 3 augustus 2009 17:54 Aan: r-h...@stat.math.ethz.ch Onderwerp: [R] How to catch an error using try Sometimes the following function call causes a database exc

Re: [R] How to catch an error using try

2009-08-03 Thread jim holtman
gotError <- try(gene.seq <- getSequence (id=gene.map[,"ensembl_transcript_id"], type="ensembl_transcript_id", seqType="3utr", mart=hmart)) if (inherits(gotError, 'try-error')){.error occurred, do recovery} On Mon, Aug 3, 2009 at 11:53 AM, wrote: > Sometimes the following function call

Re: [R] How to catch an error using try

2009-08-03 Thread Steve Lianoglou
Hi, On Aug 3, 2009, at 11:53 AM, wrote: Sometimes the following function call causes a database exception: gene.seq <- getSequence (id=gene.map[,"ensembl_transcript_id"], type="ensembl_transcript_id", + seqType="3utr", mart=hmart) I understand the above functi

[R] How to catch an error using try

2009-08-03 Thread mauede
Sometimes the following function call causes a database exception: > gene.seq <- getSequence (id=gene.map[,"ensembl_transcript_id"], > type="ensembl_transcript_id", + seqType="3utr", mart=hmart) I understand the above function must be called by try to capture the ev