To
run R
:
See the
fire an event
algorithm for background.