From S.J.Eglen at damtp.cam.ac.uk  Sun Feb 11 10:15:20 2007
From: S.J.Eglen at damtp.cam.ac.uk (Stephen Eglen)
Date: Sun, 11 Feb 2007 09:15:20 +0000
Subject: [Rd] dump.frames in call from debugger()
Message-ID: <t5x64a96onr.fsf@notch.damtp.cam.ac.uk>

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()



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