file_extension expects '.r'