fix the various warnings from R code