project settings to strip trailing space and auto-add newline
sed -r -i 's/ +$//' *.R