change R to r in code blocks