|
|
|
More R Errors
When there is an error that you don't understand,
you are almost certainly making an assumption that is not true.
Check your assumptions.
Reacting to an error
When you get an error or a warning that you don't understand,
performing the following steps may help you:
1. Don't panic.
2. Guess why it is happening.
3. Check if your guess is correct.
4. Repeat steps 1 through 3 as necessary.
The art of debugging is in the generation of the guesses and the
proficiency of the checking.
You get better with practice.
The state of R error messages
It has been observed that many error and warning messages in R
omit important details.
I'll raise my hand to that and plead guilty.
But I am trying to rehabilitate myself.
Resources
The R Inferno
Circle 8 is a catalogue of possible errors, and begins with a brief
introduction to debugging in R.
Back to top level of
Some hints for the R beginner
First Version: 2010 March 07
Last Modified: 2010 March 14
Direct access to this page is via
http://www.burns-stat.com/pages/Tutor/more_R_errors.html
|
|
|
|
|
|