18r-g will bolt in, but:-
1. you will have to shorten the throttle linkage. some ra40s like my old 79 coupe will have the threaded holes in the new location on the driver's side of the firewall if you are lucky.
2. wire from distributer to coil for points will have to be extended bout 200mm to reach the new dizzy position.
3. same goes for oil pressure sender wire.
4. obviously exhaust manifolds are different so get a set of headers to run into a 2.5in system.
5. most importantly, DO NOT bolt a twin cam head onto a single cam block UNLESS you change the oil pump for a high volume unit. you WILL be replacing bent valves, cracked timing case and mashed up timing chain when high revs and lower oil pressure will cause the chain tensioner to allow the timing chain to jump off the cam sprockets if you don't. high volume pump is physically taller than standard.
other than that the g is a great old engine. there is nothing you can do to an 18r that will bring it close to the g.
if you get a g, advance the inlet cam 1 tooth, install a 16r dizzy with bout 20deg base timing and put on a pair of 40mm webbers.
no mod plate needed cos it's a factory option. if you keep your 18r bottom end then don't even need to change rego details.
gl with it
p.s. save your coin and go 1uz