[R] odfWeave Error

Max Kuhn mxkuhn at gmail.com
Fri Mar 19 20:12:50 CET 2010


Brock,

Open up a dos prompt (use the Run menu item and type "cmd" without the quotes).

Navigate to the odt file, then try using 7z x -tzip file.odt (where
file is the name of you file).

Also, below is a message that someone sent to RHelp that might be of use to you.

Thanks,

Max

Dear all,

I'm resurrecting this old post (about 6 monts old, reproduced thereafter)
because I have struggled against the same problem and found a solution
so that I found it was worth posting for the record.

The simple fix when you want to use odfWeave with 7-ZIP as a
compressing/decompressing utility under windows is to use the
'x' instead of the 'e' option so as to preserve the full hierachy
when decompressing. In the case of Udo's example that would be:

#######################################################################
#R code
library(odfWeave)
#odfWeave call
odfWeave("c:/temp/odfWeave-test.odt", "c:/temp/odfWeave-test-out.odt",
          control = odfWeaveControl(zipCmd = c("7z a -tzip $$file$$ .",
          "7z x -tzip $$file$$")))
#######################################################################

That's all!



More information about the R-help mailing list