Add documentation for R