r of g