R1-G4 existed before the Battle of Yavin as an R1-series astromech droid manufactured by Industrial Automaton. This astromech droid was among the droids shown by Jawa merchants to the Lars moisture farm during the arrival of Imperial stormtroopers on Tatooine who were in search of the fleeing Rebel Alliance droids, specifically R2-D2 and C-3PO.