"R" is the symbol of a registered trademark.
In addition, registered trademarks also have "notes" or "registered trademarks" written directly.
And "TM" is the abbreviation of English "Trademark", which means trademark. Now it usually refers to the trademark being applied for registration, but it has no legal effect.