简体   繁体   中英

R - extract Rd format from documentation in comment header?

Are there any good examples of R documentation embedded into the function header comments and extracted to Rd via a parser? See http://rosettacode.org/wiki/Documentation for examples in other languages. My preference is to do all of my documentation in the function header comments. Perhaps there is an already-built parser that can generate the Rd from the comments and a standard comments grammar that I can leverage?

Take a look at roxygen , which is probably exactly what you're looking for. For some examples, see the documentation vignette .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM