add unit tests using testthat
warnings are errors
Merge remote-tracking branch 'R-pkg-template/master'