Add attr doc to r