Create Rcode for TunaSim