Alex Rivera | Logout

How do I generate a document (.rtf, .doc, .odt) from R

Asked 2010-11-10T16:32:14.807
18

what's the best way to generate a word-processor file (ideally as platform-independent as possible, but native Word formats will do), with images in it, from the statistical language R?

Edit
Report

1 Answer

4

Here is my solution. It uses Sweave with reStructuredText markup which allows easy generation of odf, Latex and HTML documents from a single source. See here for different writers included in docutils.

There is also rst2wordml writer that doesn't implement all the features of rest, but you may find it also useful. It works with the example from my blog (first link) if you remove the table of contents directive.

answered 2010-11-10T18:31:48.833

Your Answer