stepwise renaming r to R
stepwise renaming r to R