Add doc to r