First draft of lecture on R package