Updating code markdown for r_tutorial.md