update R examples