write rdoc