Updated R Lessons so they compile in R Studio