add r package and add r doc interpretation