replace 'r' with 'R' in r codeblocks