Skip to content
Prev 75601 / 398502 Next

How to get a list work in RData file

If you want to keep track of the function call that produced an object,
usually you need to do that inside the function that's being called, e.g.,
+     xy <- x+y
+     attr(xy, "Call") <- match.call()
+     xy
+ }
[1] 5
attr(,"Call")
test.xy(x = 2, y = 3)
atomic [1:1] 5
 - attr(*, "Call")= language test.xy(x = 2, y = 3)


Andy