Tutorials in R code