[Rd] dump.frames in call from debugger()

Stephen Eglen S.J.Eglen at damtp.cam.ac.uk
Sun Feb 11 10:15:20 CET 2007


Hi,

https://svn.r-project.org/R/trunk/src/library/utils/R/debugger.R

currently has the arg list of dump.frames as:
  dump.frames <- function(dumpto = "last.dump", to.file = FALSE)

would it be sensible to change the default for to.file to be 
  to.file = !interactive()

So that last.dump.rda would be created if a script (such as below)
is run with "R CMD BATCH" when it hits the error.

Stephen

## simple error in script.

options(error=recover)

simple <- function() {
  errorhere()
}

simple()



More information about the R-devel mailing list