ter and Flow R