next up previous
Next: Working with objects Up: R, S, and Splus Previous: Resetting the seed

Stopping on a warning

Sometimes it can be hard to figure out which step in a set of R commands generated a warning. When testing one's code, you can invoke options(warn=2) to ensure that R will stop immediately upon issuing a warning.

Last modified 12/13/08.



Chris Paciorek 2012-01-21