[R] debugger dump.frames and argument "..." is missing, with no default
Keith Ponting
k.ponting at aurix.com
Wed Jan 14 12:25:10 CET 2009
Hello all. I am not sure whether this belongs on this list or on
R-devel? The only related messages I have been able to find were on
R-devel. It may be related to
http://www.nabble.com/changed-behaviour-of-%27get%27-in-2.8.0:-request-f
or-unchange-td20143510.html as the above sequence works perfectly
happily under R 2.7.0.
I am trying to use the debugger (to resolve a bug when running with
Rscript) and have a secondary problem when functions have ... arguments
which can be reduced to the following sequence.
> options(error=quote({dump.frames("debug.dump",to.file=TRUE)}))
> silly <- function(x,...){
+ z <- list(...)
+ NONEXISTENT.FUNCTION()
+ }
> silly(1)
Error in silly(1) : could not find function "NONEXISTENT.FUNCTION"
> load("debug.dump.rda")
> debugger(debug.dump)
Message: Error in silly(1) : could not find function
"NONEXISTENT.FUNCTION"
Available environments had calls:
1: silly(1)
Enter an environment number, or 0 to exit Selection: 1
Error in get(.obj, envir = dump[[.selection]]) :
argument "..." is missing, with no default
> sessionInfo()
R version 2.8.1 (2008-12-22)
i686-pc-linux-gnu
locale:
LC_CTYPE=en_GB.UTF-8;LC_NUMERIC=C;LC_TIME=en_GB.UTF-8;LC_COLLATE=en_GB.U
TF-8;LC_MONETARY=C;LC_MESSAGES=en_GB.UTF-8;LC_PAPER=en_GB.UTF-8;LC_NAME=
C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_GB.UTF-8;LC_IDENTIFICATI
ON=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
I get this debugging error whether I enter the code directly, source a
.R file or invoke with Rscript, under SuSe linux 10.3 (as above) but
also get it if I try under Windows Vista with R version 2.8.0 Patched
(2008-10-21 r46766). (It all works perfectly happily without the "...")
Any help gratefully received!
Keith Ponting
Aurix Ltd, Malvern WR14 3SZ UK
More information about the R-help
mailing list