if (FALSE) ### Assumes you can use two independent R sessions
## In main R session
ask_Y(x=123)
## In another R session
ask_X() # returns 123
tell_Y(y=456)
## Then ask_dY in main R session returns with value '456'
Run the code above in your browser using DataLab