search for: wheref

Displaying 3 results from an estimated 3 matches for "wheref".

Did you mean: where
2007 Dec 06
1
trace() problems (PR#10498)
trace() seems to be broken in 2.6.1 and R-devel: Try the example from the ?debug man page: > library(methods) > trace("plot", browser, exit=browser, signature = c("track", + "missing")) Error in getFunction(what, where = whereF) : no function "plot" found Okay, it's just an example that doesn't work. Let's try a simpler one, the first example from the ?trace man page: > trace(sum) > hist(stats::rnorm(100)) # shows about 3-4 calls to sum() > untrace(sum) No trace! In a clean session...
2004 Jul 14
2
tracing something in a namespace (PR#7091)
...t; x <- rnorm(10) > y <- 1:10 > xyplot(y ~ x) > trace(lattice:::print.trellis, exit=recover) [1] "print.trellis" Warning message: Assigning over the binding of symbol "print.trellis" in environment/package "lattice" in: .assignOverBinding(what, newFun, whereF) > xyplot(y ~ x) > untrace(lattice:::print.trellis) Error in untrace(lattice:::print.trellis) : Argument what should be the name of a function > Something isn't right. I see three possibilities. a. tracing something in a namespace is prohibited and I didn't get an error, in...
2011 Apr 07
2
How to debug reference classes?
How do you debug methods of a reference class? I've been using mtrace, which is excellent, but i cannot figure out how to mtrace a reference class method. Maybe there is some other way to debug these, for example with ordinary trace? for now i am only able to use options(error=recover), which is not giving me idea where exactly in the code i am once i am stopped on an error. -- View this