intermediate update to the R lesson

(work in progress)