R: clean up a bit