Intermediate step for correct renaming .r files in .R