Programming with R