Update .Rmd code