Hi there ! I'm working with windows and R GUI and I'm trying to generate an automatic repport using odfWeave. I have taken the basic template available on line at : http://www.biostat.uzh.ch/services/templates.html which is SampleOdf.odt I've imported the package "odfWeave" and the corresponding library. And then I run :> file.in="E:/Tex/SampleOdf.odt" > file.out="E:/Tex/RepportOdf.odt" > odfWeave(file.in, file.out)Copying E:/Tex/SampleOdf.odt Setting wd to C:\DOCUME~1\Lore\LOCALS~1\Temp\RtmpSjnx0I/odfWeave11100313419 Unzipping ODF file using unzip -o "SampleOdf.odt" Erreur dans odfWeave(file.in, file.out) : Error unzipping file De plus : Warning message: In system(zipCmd[2], invisible = TRUE) : unzip introuvable Is there someone who has an idea of what's the problem here ? Then, I have a second question, which totally independent from the one above (I have an error in both cases...) : is RepportOdf.odt automatically generated/created or should I create the document before ? Thanks a lot everyone for your help ! Lo. _________________________________________________________________ [[elided Hotmail spam]] [[alternative HTML version deleted]]
> Unzipping ODF file using unzip -o "SampleOdf.odt" > Erreur dans odfWeave(file.in, file.out) : Error unzipping file > De plus : Warning message: > In system(zipCmd[2], invisible = TRUE) : unzip introuvableI get this question about twice a week. Look at the help file. ?odfWeave says: "Since ODF files are compressed archives of files and directories, R will need to zip and unzip the source file. While R has an unzip utility, it does not have one for re-zipping files, so an external application is needed. unzip and zip are free utilities located at http://www.info-zip.org/"> Then, I have a second question, which totally independent from the one above (I have an error in both cases...) : is RepportOdf.odt automatically generated/created or should I create the document before ?You will need to create an odt document with the R code in it, then odfWeave(inFile, outFile) will take the input odt file and produce an output odt file. Please see: http://www.r-project.org/conferences/useR-2007/program/presentations/kuhn.pdf for an idea of how it works. And read the posting guide. Max