added R flags