search for: functionwithtrace

Displaying 4 results from an estimated 4 matches for "functionwithtrace".

2020 Aug 25
2
trace creates object in base namespace if called on function argument
Dear R-devel, I don't think this is expected : foo <- function() "hello" trace2 <- function(fun) trace(fun, quote(print("!!!"))) base::fun # Object with tracing code, class "functionWithTrace" # Original definition: # function() "hello" # # ## (to see the tracing code, look at body(object)) `untrace()` has the same behavior. This is inconsistent with how debug works : foo <- function() "hello" debug2 <- function(fun) debug(fun) debug2(foo) isdebugged(fo...
2020 Aug 26
2
trace creates object in base namespace if called on function argument
...> ?crit : > >> Dear R-devel, >> >> I don't think this is expected : >> >> foo <- function() "hello" >> trace2 <- function(fun) trace(fun, quote(print("!!!"))) >> base::fun >> # Object with tracing code, class "functionWithTrace" >> # Original definition: >> # function() "hello" >> # >> # ## (to see the tracing code, look at body(object)) >> >> `untrace()` has the same behavior. >> >> This is inconsistent with how debug works : >> >> foo <- funct...
2005 Nov 14
1
Tidiest way of modifying S4 classes?
...> getClass(class(kinship:::plot.pedigree)) No Slots, prototype of class "function" Extends: "OptionalFunction", "PossibleMethod" Known Subclasses: Class "MethodDefinition", from data part Class "genericFunction", from data part Class "functionWithTrace", from data part Class "derivedDefaultMethod", by class "MethodDefinition" Class "MethodWithNext", by class "MethodDefinition" Class "SealedMethodDefinition", by class "MethodDefinition" Class "standardGeneric", by class &qu...
2020 Aug 26
0
trace creates object in base namespace if called on function argument
...devel, > >> > >> I don't think this is expected : > >> > >> foo <- function() "hello" > >> trace2 <- function(fun) trace(fun, quote(print("!!!"))) > >> base::fun > >> # Object with tracing code, class "functionWithTrace" > >> # Original definition: > >> # function() "hello" > >> # > >> # ## (to see the tracing code, look at body(object)) > >> > >> `untrace()` has the same behavior. > >> > >> This is inconsistent with how debug w...