Leia specifically says "I have placed information vital
to the survival of the Rebellion into the memory systems of this R2 unit."  So, the interpretation of R2-D2's role at the beginning seems spurious.