I'm trying to achieve this with \ulcorner:

But I'm just getting

with ^\ulcorner R.
Any ideas how I can get rid of the padding between the corner and the letter?
A solution depends on the used fonts, sizes, math style, ... Adjust the parameters accordingly.
\documentclass{article}
\usepackage{amssymb}
\newcommand*{\ulcR}{\raisebox{1.5pt}{\rlap{$\ulcorner$}\kern.5pt}R}
\begin{document}
\[ \ulcR \]
\end{document}
framebox? – Werner Mar 12 '18 at 17:32framebox? – Cir0X Mar 12 '18 at 17:46\!– David Carlisle Mar 12 '18 at 18:20\frameboxdraws rules with flat ends. – Werner Mar 12 '18 at 18:20\ulc{R}and have a\ulcorneras a prefix toR, but then have it extendable to (say)\urc{R}and have\urcorneras a suffix toR. – Werner Mar 12 '18 at 18:22