R: make some settings customizable