But let your communication be Yea, yea; Nay, nay: for whatsoever is more than these cometh of evil
Tuesday, August 7th, 2007

Sweave – seamless statistics and document automation

The R Munich user group likes Sweave. Here are 3 screenshots how to create a seamless R + Open Office integration (which works also for Word documents if you have installed the ODF converter plugin). First create your document

sweave.R

 1:
 2:
 3:
 4:
 5:
 6:
 7:
 8:
 9:
10:
12:
# the document d:/roffice.odt needs some code like (please remove leading #)
# not interpreted text
# <<MyOutput,echo=TRUE>>=                 
# print(iris[1:10,])
# @
# not interpreted text

install.packages("odfWeave", dependencies=TRUE)  
library(utils)
library(odfWeave)
odfWeave("d:/roffice.odt","d:/roffice_.odt")

the document

sweave01.png

save it, open R and execute

sweave02.png

Your document will then look like

sweave03.png

Related Posts: How to lie with statistics, Where we recombine, More statistics, Any new paper? A video cast how to stay informed
Categories: Genetics + Biology
Keywords:
Trackback: http://www.wjst.de/blog/blog/2007/08/07/sweave-seamless-document-automation/


Comments are closed.