E. Meredith and J.S. Racine, "Towards Reproducible Econometric Research: The Sweave Framework," Journal of Applied Econometrics, Vol. 24, No. 2, 2009, pp. 366-374.