update some R test codes
Merge branch 'master' of http://github.com/jeppe/PracCodes