R flag works