Converting .Rd file to plain text

plaintext, r, rd

Solution

Try

tools::Rd2txt("path/to/file.Rd")

Problem

I'm trying to convert R documentation files (extension .Rd) into plain text. I am aware that RdUtils contains a tool called Rdconv, but as far as I know it can only be used from the command line. Is there a way to access Rdconv (or a similar conversion tool) from within an R session?

Original source