Re: [R] Rf_error crashes entire program.

2008-07-29 Thread Prof Brian Ripley
Rf_error is used so often in R itself and packages that it is almost certainly not the problem -- rather something else your program has done has damaged R's internals (e.g. overrrun an array). 'Writing R Extensions' discusses how to debug R code, including foreign code. For example, I would

[R] Rf_error crashes entire program.

2008-07-28 Thread Andrew Redd
I'm having a problem with the error and warning functions. I've tried this on multiple machine so I'm fairly sure it's not machine dependent and I've tried it on the latest versions 2.6.0-2.7.1. Whenever my program gets to an error or warning it crashes the entire program rather than throwing

Re: [R] Rf_error crashes entire program.

2008-07-28 Thread Duncan Murdoch
On 28/07/2008 6:41 PM, Andrew Redd wrote: I'm having a problem with the error and warning functions. I've tried this on multiple machine so I'm fairly sure it's not machine dependent and I've tried it on the latest versions 2.6.0-2.7.1. Whenever my program gets to an error or warning it

Re: [R] Rf_error crashes entire program.

2008-07-28 Thread Andrew Redd
Switching all of my printfs to Rprintf fixed the problem the errors now proceed correctly. I was unable to reproduce the error, but now that is irrelevant, at least to me. Thanks for the help. -Andrew [[alternative HTML version deleted]] __