maechler@stat.math.ethz.ch
2004-Oct-21 18:13 UTC
[Rd] untrace() failing {when "methods" are active} (PR#7301)
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