To run R:

  1. Run S.

To run S:

  1. Run R, then fire an event named "a".