FloE
FloE

Reputation: 1176

DocBook & R with Sweave/knitr

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

Answers (2)

Spacedman
Spacedman

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

Paul Hiemstra
Paul Hiemstra

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

Related Questions