A cookbook of epidemiological models in R