How to generate an ENUMERATE library by R-groups.

I want to generate an Enumerate library by R-groups by using Discovery Studio. The protocol needs a RG file. How to generate it? Is there any detailed tutorial about this topics?

Thanks