Avoid error if filetype of last file isn't .R*.