[R] stop at error point in for-loop
Jeff Newmiller
jdnewmil at dcn.davis.ca.us
Sun Oct 14 09:36:30 CEST 2012
options(error = recover)
---------------------------------------------------------------------------
Jeff Newmiller The ..... ..... Go Live...
DCN:<jdnewmil at dcn.davis.ca.us> Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/Batteries O.O#. #.O#. with
/Software/Embedded Controllers) .OO#. .OO#. rocks...1k
---------------------------------------------------------------------------
Sent from my phone. Please excuse my brevity.
mrzung <mrzung46 at gmail.com> wrote:
>hi all:
>
>Following is simple example,
>
>for(i in 1:10000000){
>a<-function(i){
>#some function that has an error
>}
>}
>
>What I want to know is the way to find the error point in for-loop,
>What "i"
>makes the error.
>
>is there any way to solve it instead of debugging and finding an error
>manually?
>
>Thanks,
>
>
>
>
>
>--
>View this message in context:
>http://r.789695.n4.nabble.com/stop-at-error-point-in-for-loop-tp4646115.html
>Sent from the R help mailing list archive at Nabble.com.
>
>______________________________________________
>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.
More information about the R-help
mailing list