Hi R-team, I am new user of R 2.8.1 in windows 2003 environment. I use Tinn-R as code editor. When running the sample codes from odf manual the following error occured. I have winzip installed in my system. I used openoffice writer under windows to create the example1.odt file. can anybody help me out to fix the bug. the code executed is as follows: library(odfWeave)> inFile <- "c:/example1.odt" > outFile <- "c:/out.odt" > imageDefs <- getImageDefs() > imageDefs$dispWidth <- 4.5 > imageDefs$dispHeight<- 4.5 > setImageDefs(imageDefs) > > odfWeave(inFile, outFile)Copying c:/example1.odt Setting wd to C:\DOCUME~1\Srinivas\LOCALS~1\Temp\RtmpAgBGhm/odfWeave04172603473 Unzipping ODF file using unzip -o "example1.odt" Error in odfWeave(inFile, outFile) : Error unzipping file In addition: Warning message: In system(zipCmd[2], invisible = TRUE) : unzip not found thanks in advance, warm regards, srinivas statistical analyst. [[alternative HTML version deleted]]
srinivasa raghavan <srinivasraghav <at> gmail.com> writes:> I have winzip installed in my system.....> Error in odfWeave(inFile, outFile) : Error unzipping file > In addition: Warning message: > In system(zipCmd[2], invisible = TRUE) : unzip not found > > thanks in advance, > > warm regards, > srinivas > statistical analyst. >I have solved this problem by downloading the zip utilities from the site referenced on the odfWeave help page, and making sure they are placed in a directory which is included in the system path. It even works with portable openoffice. You may be able to get winzip working with odfWeave through odfWeaveControl(), but I haven't tried this myself. See: http://finzi.psych.upenn.edu/R/Rhelp02/archive/118223.html Hope this helps, Michael Bibo Queensland Health