adding report capability to code metrics in R