This problem has already been posted here without an answer: $f$ may be extended to a $C^r$ function $h : A \to R$.
I have thought about this problem but I do not know how I can begin to solve it, I think that the following theorem can be used but I do not know how. Could anyone help me, please? Thank you very much.

