auto-insert a newline at the end of R scripts when executing the last line