The title basically says it all.
If I do this ...
makeActiveBinding("x", function() runif(2), .GlobalEnv)
x
# [1] 0.7332872 0.4707796
x
# [1] 0.5500310 0.5013099
... is there then any way for me to examine x
to learn what function it is linked to (and if not, why not)?
(In this case, I'd like to be able to learn that x
was defined to be function() runif(2)
.)
str(x)
would be to print (or rathercat()
) the string "<active binding>\n". Is that what you see too? – Demonstrator