Have a look at this Wikipedia article of the Gâteaux-Derivative.
So using a small increment $ε$ and a direction $δw$ we yield
\begin{align*}f(w,εδw) &= (w+εδw)^\top R(w+εδw)\\
&= w^\top Rw + ε(δw)^\top Rw + εw^\top R(δw) + ε^2(δw)^\top R(δw)
\end{align*}
Applying the derivative w.r.t. $ε$:
\begin{align*}
\frac{\mathrm{d}}{\mathrm{d}ε}f(w,εδw)= (δw)^\top Rw + w^\top R(δw) + 2ε(δw)^\top R(δw)
\end{align*}
Setting $ε=0$:
\begin{align*}
\frac{\mathrm{d}}{\mathrm{d}ε}f(w,εδw)\big|_{ε=0}= (δw)^\top Rw + w^\top R(δw)
\end{align*}
Now if $R$ is symmetric you get:
\begin{align*}
\frac{\mathrm{d}}{\mathrm{d}ε}f(w,εδw)\big|_{ε=0}= 2(δw)^\top Rw
\end{align*}
So the gradient is $∇f(w) = 2Rw$.
That is because, $∇f = (∂_{e_1}f, ∂_{e_2}f, …)^T$. So replacing δw with $e_i$ gives: $$∂_{e_i}f = [2Rw]_i,$$
the i-th entry of the vector $2Rw$.
Here is a similar question. IMO, even though the top answer calculates the derivative by brute force doing matrix multiplication, the concept of variational derivative grants you a very nice method to calculate derivatives.
After some times, you can do it in your head skipping the first two steps.