A compact topological space $X$ admits a unique uniform structure $\mathfrak{U}$ compatible with its topology (for me, compact implies Hausdorff); moreover, $\mathfrak{U}$ consists of the neighborhoods of the diagonal $\Delta$ in $X\times X$ (for the product topology).
Moreover, any continuous function $f : X \to X'$ from $X$ as above to a uniform space $X'$ is uniformly continuous.
With the usual metric over $\mathbb{R}$, a fundamental system of entourages of its uniform structure is $V_{\epsilon} = \{(x,y) \in \mathbb{R}^2 \mid |x-y|< \epsilon \}$ with $\epsilon>0$. You can easily check that the uniform structure on $\mathbb{R}$ induced by $\overline{\mathbb{R}}$ is also the usual one.
Consequently, if $f : \mathbb{R} \to \mathbb{R}$ is continuous and extends to some $\overline{f} : \overline{\mathbb{R}} \to \mathbb{R}$ continuous, then $\overline{f}$ (and thus $f$) is uniformly continuous.
Notice that it is not true for any compactification of $\mathbb{R}$, in general the uniform structure induced by the compactification on $\mathbb{R}$ is strictly finer than the usual one. For a counterexample, build a continuous but non uniformly continuous function $f : \mathbb{R} \to [0,1]$ and extend it to $\tilde{f} : \beta \mathbb{R} \to [0,1]$.
However, it still works for Alexandroff compactification (aka one-point compactification).