From maechler at stat.math.ethz.ch  Thu Oct 21 18:12:40 2004
From: maechler at stat.math.ethz.ch (maechler@stat.math.ethz.ch)
Date: Thu Oct 21 18:13:07 2004
Subject: [Rd] untrace() failing {when "methods" are active} (PR#7301)
Message-ID: <20041021161240.5C0B810E94@slim.kubism.ku.dk>

This happens in R-2.0.0 (or R-patched or R-devel of this night):

> trace(axis)
> untrace(axis)
Error in .assignOverBinding(what, newFun, whereF, global) : 
	Object "newFun" not found

> traceback()
6: .assignOverBinding(what, newFun, whereF, global)
5: methods::.TraceWithMethods(axis, where = <environment>, untrace = TRUE)
4: eval(expr, envir, enclos)
3: eval(expr, p)
2: eval.parent(call)
1: untrace(axis)

---
I've quickly tried to run R without "methods" and there,
untrace() doesn't fail {inside untrace(), the other if()-branch
is used}.

Martin


[Rd] untrace() failing {when "methods" are active} (PR#7301)
maechler@stat.math.ethz.ch