convert to rdoc