Change R dir so that it works