Slides and code from the introduction to R workshop