Problem: Suppose $f\in R[a,b]$ then for any $[c,d]\subseteq [a,b]$ we have that $f\in R[c,d]$.
Let $\epsilon>0$. As f is integrable, there exists a partition $D$ of $[a,b]$, given by
$D=$ $\{$ $a,x_1,x_2,x_3....,x_n=b$ $\}$
Consider $D'= D \cup$ $\{$ $c,d$ $\}$. Then $D'$ is a refinement of $D$. Let $D''=D'\cap [c,d]$. Then $D''$ is a partition for $[c,d]$ and is a subset of $D$, therefore $U(f,D'')-L(f,D'')\leq U(f,D')-L(f,D')\leq U(f,D)-L(f,D) < \epsilon$. The first inequality holds because $D''\subseteq D$.