R tutorial final draft