if (FALSE) ### Assumes you can use two independent R sessions
## In main R session
ask_dY(x=123)
## In another R session
ask_dX() # returns c(123, 123.123)
tell_dY(dy=c(456,456.123))
## Then ask_dY in main R session returns with value '1'
Run the code above in your browser using DataLab