R programming notes and scripts