More complete examples of multi step tasks written in R