1
\draw[draw=blue]let\p1=($(P)-(O)$),
\n1={atan(\y1/\x1)},\p2=($(P)-(R)$),\n2={atan(\y2/\x2)}
in($(P)!0.5cm!(R)$)arc(\n2:\n1:-.5);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
LaTeX

Compile Error

1. Check the configured compile mode in settings

2. Check the LaTeX log file:

MathJax