fix up namespace of R code by moving it into its own package, loaded via devtools.