[R] R report generator (for Word)?

G. Jay Kerns gkerns at ysu.edu
Mon Jan 2 01:55:47 CET 2012


Dear Michael,

On Sun, Jan 1, 2012 at 10:50 AM, Michael <comtech.usa at gmail.com> wrote:
> Happy New Year all!

[snip]

> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.


Nobody's yet mentioned that the latest version of Emacs Org mode
(http://orgmode.org/) ships with an ODT (OpenDocument Text) exporter.
This means that a person can now use the same single plain text file
to integrate R code (and/or 30+ other languages) to process:
- HTML:  C-c C-e h- LaTeX: C-c C-e l- PDF:    C-c C-e p  (via
pdflatex)- ODT:   C-c C-e o- ...etc.
You get syntax highlighting, integrated math formulae, code
tangling,... there's even an elementary table editor for simple
spreadsheet operations.  And again, all exported formats originate
from the same plain text file.

MS-Word can definitely read HTML, and when I last checked (long ago)
there existed plugins for MS_Word to read .odt.  Of course,
LibreOffice can convert ODT (and HTML) to MS-Word if necessary.
GoogleDocs does an OK job converting back and forth, too, and if this
option is available to you there are some pretty cool Google
collaborative tools.
On the flipside, Emacs in general is a tough pill to swallow, and
that's an understatement.  Two parting thoughts:1) Org mode is similar
to, but not identical with, Sweave.2) Org mode originated as an
organization/outlining tool, so it has all sorts of tricks for
"Getting Things Done", such as TODO lists, agendas,
capturing-archiving, calendar integration, time tracking,...  These
could possibly address some of the other issues you mentioned.
Good luck, and Happy New Year.Jay

*************************************
G. Jay Kerns, Ph.D.
Mathematics and Statistics
Youngstown State University
http://people.ysu.edu/~gkerns/



More information about the R-help mailing list