Course materials for teaching R