Remove trailing whitespace from R scripts