r flex