added r doc