For $r = 1/2$, there is an interval $E$ for which this holds. Several proofs of this fact are given in:
Totik, Vilmos. A tale of two integrals. American Mathematical Monthly 106: 227-240, 1999. MathSciNet | Full text (JSTOR)
(These proofs are given replacing the domain $\mathbb{R}$ with $[0,1]$, so apply the obvious transformation. Totik also gives a proof that the desired equality holds with $E$ an interval if and only if $r = 1/k$ for some integer $k$.)
So let $E_1$ be an (open) interval such that $\int_{E_1} f = \int_{E_1} g = 1/2$. Then by applying the same result to $f_1 = 2f1_{E_1^c}$, $g_1 = 2 g 1_{E_1^c}$, we can produce $E_2$, disjoint from $E_1$, with $\int_{E_2} f = \int_{E_2} g = 1/4$. ($E_2$ may not be an interval, because we have to remove $E_1$ from it, but we can take it to be a finite union of open intervals.) Proceeding, we can produce disjoint sets $E_n$ with $\int_{E_n} f = \int_{E_n} g = 2^{-n}$. Now consider the binary expansion of $r$ and take the union of the corresponding $E_n$. The resulting set $E$ is not only measurable but in fact open.
Hopefully I didn't overlook any subtle details...