R on R tutorial sample application