Hi all,
I have been trying to store an activeBinding inside a list in the following way
set.seed(1)
makeActiveBinding("independent_var", purrr::partial(runif, n=1), env=environment())
independent_var
# [1] 0.2655087
# All OK!
# Here the element is evaluated. So inside I have a fix number not the active binding itself.
active_elements <- list("active_element" = independent_var)
active_elements$active_element
# [1] 0.3721239
active_elements$active_element
# [1] 0.3721239
##### What I would like: ######
active_elements$active_element
# [1] 0.5728534
active_elements$active_element
# [1] 0.9082078
Of course that doesn't work because the evaluation happens when I bind the variable to list element, and in fact it would be quite unintuitive if it worked the way I tried 
Is there any way to achieve that, I know you can do it with environments, but I was wondering if it was possible within lists.
Thanks a lot for your help!