notes for using R