What is an example of an algebraic (=Zariski closed) subset $C$ of $\mathbb{R}^2$ which is a topological retract of $\mathbb{R}^2$, but there is no algebraic retraction $P:\mathbb{R}^2 \to C$?
What is an example of such a situation in $\mathbb{C}^2$?