rename_r_to_R function

Rename files' extensions in a folder from .r to .R