better code formatting in Rmd file