“R” isn’t an element – there is no element with that symbol.
“R” represents any group of atoms that could be attached to an organic molecule.
For example, alcohol’s generic structure looks like this:
“R” could be as simple as one hydrogen atom:
Or “R” could be an entire carbon chain:
“R” is a variable or wildcard character. It could represent anything.