R housekeeping