The story behind R2-D2's name(according to sound editor Walter Murch) is that during editing of Lucas's previous film American Graffiti,
Murch(who would go on to win several Academy Awards) asked for“Reel 2, Dialogue Track 2” and abbreviated it to R2D2.