Strip R extension.
strip_r_extension(filename)
character. The filename to strip.
the filename without the '.r' or '.R' at the end.