R: How to get a stack trace from the snow package

Posted by Keith on Stack Overflow See other posts from Stack Overflow or by Keith
Published on 2010-06-18T16:40:40Z Indexed on 2010/06/18 16:43 UTC
Read the original article Hit count: 105

Filed under:
|
|

How can I get a stack trace back from a snow node after an error occurs?

I am using the snow package (version 0.3-3) on R 2.10.1 and I'm getting errors when I use parSapply that do not occur when I use sapply. Snow is nice enough to give me the error message but it would be much more useful for me to have the kind of stack trace you can get from traceback(). So far I have tried:

options(showWarnCalls = T, showErrorCalls = T)
setDefaultClusterOptions(outfile = "/dev/tty")

and

options(error=traceback)
setDefaultClusterOptions(outfile = "/dev/tty")

without luck. I'm currently just testing with a local cluster ie:

makeSOCKcluster(c("localhost","localhost"))

but I will eventually be using an MPI cluster. Thanks.

© Stack Overflow or respective owner

Related posts about r

    Related posts about stacktrace