R notes in slides linked to