R: How to get stack trace from snow cover

How can I get a stack trace from a snow node after an error occurs? I get errors when I use parSapply, which do not occur when I use sapply. The snow is good enough to give me an error message, but it would be much more beneficial for me to get the 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")

no luck. Currently, I am only testing a local cluster, i.e.

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

but in the end I will use an MPI cluster. Thank.

Relevant Versions:

  • snow pack (version 0.3-3)
  • R 2.10.1
  • Mac OS X 10.5.8

Edit: version information is moved to the end of the question and OS X is added

+3
1

options(error=traceback) , .

+2

Source: https://habr.com/ru/post/1750711/


All Articles