I also had issues similar to this. Check the battery the r6s are a bit funny and require a good battery to idle correctly. Mine would crank and start just fine but would carry on and stall out and not run correctly until the bike had charged the battery over a certain point.

Sent from my SM-G920I using Tapatalk