Reputation: 1176
R and LaTeX (...) can be easily combined using Sweave or knitr.
Is there any possibility to accomplish the same with DocBook?
Upvotes: 1
Views: 195
Reputation: 94237
Isn't the answer to every "how do I convert markup format A to markup format B?" question simply "pandoc"?
Not sure of the exact workflow, but you'd write R-flavour markdown, knit it, then pandoc to convert to docbook.
Writing a new O'Reilly book? I know they luuurrve the docbook!
Upvotes: 2
Reputation: 60964
Knitr and Sweave do not provide DocBook as a backend. Googling for r docbook
did not yield much, other than a question on R-help in 2008 that asked exactly what you did. You could have a look at how knitr uses markdown, and port those ideas to docbook. This is probably doable, but a lot of work.
Upvotes: 0