In a circuit there is a battery with internal resistance $r$ and EMF $E$, which is connected to external load resistance $R$. Find value of $R$ so that maximum power dissipates across $R$.
(A) $R = r$
(B) $R = r/2$
(C) $R = \sqrt{2}r$
(D) $R = 2r$