* better code format in r client * update code based on lintr * update samples
* add lintr * update samples