Useful boilerplates for R