An R-group can contain atoms, variable atoms, or shortcuts (functional groups).
Use the tool. See video.
Substructure Query Features