[R] fatal error prevents multi-line functions or loop to run
Jeff Newmiller
jdnewmil at dcn.davis.ca.us
Mon Apr 2 23:45:33 CEST 2012
Sounds like you tried everything I know. However, I, and anyone else on this list whose mind-reading powers are undeveloped, really can't be sure because you didn't show us what you tried. Perhaps you should (re-)read the posting guidelines and try showing us reproducible sample code that doesn't do what you expect it to (along with some indication of what you expected it to do).
---------------------------------------------------------------------------
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.
Ebrahim Jahanshiri <e.jahanshiri at gmail.com> wrote:
>Dear all,
>
>I have written some function that can go up to many lines. Two of the
>lines
>give warning errors like:
>
>Error in print(....)[c(1, :
> error in evaluating the argument 'x' in selecting a method for
>function 'print': Error in ...
> regions with no neighbours found
>
>
>now obviously this kind of error will halt the execution of the
>function. I
>tried *try()* or *tryCatch()* and many other selections in the
>*options()*but still this error by all means stops the execution of
>the function or
>any other multi-line code.
>
>I would appreciate if you could give me a clue.
>
>Ebrahim
>
> [[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.
More information about the R-help
mailing list