search for: dumpto

Displaying 4 results from an estimated 4 matches for "dumpto".

Did you mean: jumpto
2012 Jul 24
1
dump.frames and global environment
Dear list members, I am trying to use dump.frames to debug some code that i run non interactively. I use the following method: dump.frames.mod = function() { dump.frames(dumpto = 'test', to.file = TRUE) quit(save = 'no', status = 10) } options(error = dump.frames.mod) Is there any way to acess the content of the global environment from the *.rda file created in case of an error? When I run the following, for example, I would like to access the con...
2011 Nov 24
1
content of global environment with dump.frames()
..., wondering about how to see the content of the global environment at the moment that dump.fames() was invoked. Her is some test piece (careful about the rm(list=ls(), remove the # if you know what you are doing to easier see the effect): # rm(list=ls()) a=2 test = function() { ? b=3 ? dump.frames(dumpto='test', to.file = TRUE ) } test() # rm(list=ls()) load('test.rda') debugger(test) I can now investigate the value of 'b' but could not figure out a way to get the value of 'a'. Am I missing something or is dump.frames only intended to be uses with options(error=d...
2011 Sep 28
3
dump.frames, debugger and the "..." argument
Dear List, i run R non interactively and use option(error = dump.frames) to reconstruct the cause of errors for debugging. One of the functions in the call stack however uses the "..." (dot dot dot) argument. When I run debugger() and try to browse to this functions' environment I get the following error message: Error in get(.obj, envir = dump[[.selection]]) : argument
2014 Apr 29
1
access environment in which an error occurred
...ow does not work this case. I have implemented something like: dump.frames.mod = function(file.name, file.results) { file.name.error = 'dummy' cat(paste('\nSaving workspace to file: \n', file.name.error, '.rda\n', sep='')) dump.frames(dumpto = file.name.error, to.file = TRUE) quit(save = 'no', status = 10) } options(error = quote({dump.frames.mod()})) This, however, seems to hang my R session in case of an error. I do the whole thing to debug Code run remotely and non interactively on a cluster. In the logfile...