R tutorial for Duke