I think we would need to see the odt file. You might want to upload it to some place like www.mediafire.com or www.dropbox.com so that R-help readers can take a look at it.
John Kane Kingston ON Canada > -----Original Message----- > From: [email protected] > Sent: Tue, 6 Aug 2013 14:20:40 -0400 > To: [email protected] > Subject: [R] odfWeave post processing error > > Hello all. When I attempt to run the following script, I receive a post > processing error message. I would appreciate any help in interpreting and > correcting the error. > Script: > library(odfWeave) > ctrl <- odfWeaveControl(zipCmd = c("\"C:\\Program Files\\7-Zip\\7z.exe\" > a $$file$$", "\"C:\\Program Files\\7-Zip\\7z.exe\" x -tzip $$file$$")) > odfWeave('ex1.odt', 'out.odt', control = ctrl) > Output: >> odfWeave('ex1.odt', 'out.odt', control = ctrl) Creating >> C:\Users\Frank\AppData\Local\Temp\RtmpCctAn2/odfWeave06140621908 >> Copying ex1.odt Setting wd to >> C:\Users\Frank\AppData\Local\Temp\RtmpCctAn2\odfWeave06140621908 >> Unzipping ODF file using "C:\Program Files\7-Zip\7z.exe" x -tzip >> "ex1.odt" > 7-Zip [64] 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18 > Processing archive: ex1.odt > Extracting mimetypeExtracting Configurations2\floaterExtracting > Configurations2\accelerator\current.xmlExtracting > Configurations2\images\BitmapsExtracting > Configurations2\progressbarExtracting Configurations2\menubarExtracting > Configurations2\popupmenuExtracting Configurations2\statusbarExtracting > Configurations2\toolbarExtracting Configurations2\toolpanelExtracting > Thumbnails\thumbnail.pngExtracting content.xmlExtracting > settings.xmlExtracting styles.xmlExtracting manifest.rdfExtracting > meta.xmlExtracting META-INF\manifest.xml > Everything is Ok > Folders: 8Files: 9Size: 33353Compressed: 14190 > Removing ex1.odt Creating a Pictures directory > Pre-processing the contents Sweaving content.Rnw > Writing to file content_1.xml Processing code chunks ... 1 : term > hide 2 : term verbatim(label=t1) 3 : term xml(label=t2) > 'content_1.xml' has been Sweaved > Removing content.xml > Here the processing stops. > Error: > Error: XML content does not seem to be XML: 'content_1.xml'In addition: > Warning message:In file.remove("content.xml") : cannot remove file > 'content.xml', reason 'No such file or directory' > SessionInfo: > Post-processing the contents sessionInfo()R version 3.0.1 > (2013-05-16)Platform: x86_64-w64-mingw32/x64 (64-bit) > locale:[1] LC_COLLATE=English_United States.1252 [2] > LC_CTYPE=English_United States.1252 [3] LC_MONETARY=English_United > States.1252[4] LC_NUMERIC=C [5] > LC_TIME=English_United States.1252 > attached base packages: [1] grid grDevices datasets splines > graphics stats tcltk [8] utils methods base > other attached packages: [1] odfWeave_0.8.2 XML_3.98-1.1 > Kmisc_0.4.0-1 Rcpp_0.10.4 [5] psych_1.3.2 ggplot2_0.9.3.1 > MCMCpack_1.3-3 coda_0.16-1 [9] xtable_1.7-1 plyr_1.8 > polycor_0.7-8 sfsmisc_1.0-23 [13] prettyR_2.0-7 lme4_0.999999-2 > Matrix_1.0-12 effects_2.2-4 [17] colorspace_1.2-2 lattice_0.20-15 > mvnormtest_0.1-9 gmodels_2.15.4 [21] gtools_3.0.0 doBy_4.5-8 > multcomp_1.2-18 mvtnorm_0.9-9995[25] rms_4.0-0 SparseM_1.03 > e1071_1.6-1 class_7.3-8 [29] car_2.0-18 nnet_7.3-7 > mitools_2.2 foreign_0.8-54 [33] MASS_7.3-28 svSocket_0.9-55 > TinnR_1.0-5 R2HTML_2.2.1 [37] Hmisc_3.12-2 Formula_1.1-1 > survival_2.37-4 > loaded via a namespace (and not attached): [1] cluster_1.14.4 > dichromat_2.0-0 digest_0.6.3 gdata_2.13.2 [5] gtable_0.1.2 > labeling_0.2 munsell_0.4.2 nlme_3.1-110 [9] proto_0.3-10 > RColorBrewer_1.0-5 reshape2_1.2.2 rpart_4.1-1 [13] scales_0.2.3 > stats4_3.0.1 stringr_0.6.2 svMisc_0.9-69 [17] tools_3.0.1 > > > > > Respectfully, > > Frank Lawrence > > [[alternative HTML version deleted]] > > ______________________________________________ > [email protected] 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. ____________________________________________________________ FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop! ______________________________________________ [email protected] 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.

