Re: [R] Avoid Sweave from stopping on errors

From: Doran, Harold <HDoran_at_air.org>
Date: Thu 08 Sep 2005 - 03:22:31 EST


You could use <<eval=FALSE>>= and the code inside the chunk will not be evaluated. I suppose two other options could be to comment out the bad code inside the code chunk or to use verbatim to make it look like a code chunk in your output.  

-----Original Message-----
From: r-help-bounces@stat.math.ethz.ch [mailto:r-help-bounces@stat.math.ethz.ch] On Behalf Of Vincent Goulet Sent: Wednesday, September 07, 2005 11:44 AM To: r-help@stat.math.ethz.ch
Subject: [R] Avoid Sweave from stopping on errors

Hi all,

Is there an option in Sweave to avoid it from stopping on a code chunk with an error? (I purposefully want to include code with an error in class notes.)

I suspect the answer is "no" and that I will be pointed to options("error"). That'd be fine, but which error parameter will just "do nothing" in case of an error?

Thanks in advance!

--
  Vincent Goulet, Associate Professor
  École d'actuariat
  Université Laval, Québec 
  Vincent.Goulet_at_act.ulaval.ca   http://vgoulet.act.ulaval.ca


______________________________________________
R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
______________________________________________
R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Thu Sep 08 03:27:31 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:40:05 EST