r version of gc_summarize