Make sure R possessed the ball in the field of play before crossing the goal line. If he didn't, the kick is what caused the ball to cross the goal line and it is a touchback.
The referee should position himself on the goal line. There are no tips beyond have good vision and judgment.