Hi Joel, Can you paste a minimal example illustrating your problem? Thanks, Ista On Wed, Jan 27, 2010 at 6:19 AM, Joel GOMBIN <joel.gom...@gmail.com> wrote: > Hello, > > thanks to Sarah for her help. That works fine, except for one thing. When I > generate my reports, using odfWeave(), some cells in my tables are filled > with the expression I put in the input file (/Sexpr(...)) instead of the > result of its evalutation. I suspected there was a problem in the XML code ; > indeed, when I look at the content.xml file of the input ODT file, there are > some <text:soft-page-break/> tags in the middle of cells. > > Is it any way of instructing OpenOffice not to put these tags, or do I have > no other choice than removing them by hand in the content.xml file ? > > Thanks a lot in advance, > > Joel > > On Wed, Jan 6, 2010 at 7:12 PM, Sarah Goslee <sarah.gos...@gmail.com> wrote: > >> Hi Joel, >> >> If you actually want to make a table, you need to use odfTable. There >> are examples >> in the help for that function. Same for odfCat, but instead of >> creating a table, that will >> print your output. >> >> eg to print your output: >> >> <<echo=FALSE>>= >> odfCat("some random normal data:", rnorm(5)) # from the help file >> @ >> >> or to make a table: >> >> <<echo=FALSE>>= >> x <- matrix(1:12, ncol=3) >> colnames(x) <- c("a", "b", "c") >> odfTable(x) >> odfTableCaption("A useless table") >> @ >> >> ODT files are actually compressed XML files. If you just print from >> within R, there are no >> XML tags around your output and OpenOffice has no idea what to do with it. >> The >> various odfSomething R functions wrap the R output in XML tags so OOo will >> understand it in the final output. >> >> Sarah >> >> On Wed, Jan 6, 2010 at 12:41 PM, Joel GOMBIN <joel.gom...@gmail.com> >> wrote: >> > Hello, >> > >> > I have encountered problems using odfdWeave. I actually have the same >> error >> > message as was reported in this message ( >> > http://tolstoy.newcastle.edu.au/R/e6/help/09/01/0872.html), but I don't >> > quite understand the answer made by Max Kuhn ("You need to cat the >> results >> > using odfCAt, otherwise you are just writing the output with no XML >> around >> > it."). What I am supposed to do exactly ? >> > >> > What I'm trying to do is writing values I have computed earlier in the >> cells >> > of a table in an ODT file. >> > >> > I'm very grateful in advance for any help... >> > >> >> >> -- >> Sarah Goslee >> http://www.functionaldiversity.org >> > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >
-- Ista Zahn Graduate student University of Rochester Department of Clinical and Social Psychology http://yourpsyche.org ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.