An introduction to Docker for reproducible research, with examples from the R environment