change file names from *.r to *.R