I\'m writing some R notes with Sweave and would like to show common errors. For example,
<>= x = 5 #Case matters! x*X @ >
Wrap your error in a try() command. Then it will keep running:
try()
> {print(1); try(x*X); print(2)} [1] 1 Error in try(x * X) : object 'X' not found [1] 2