Can you: - run any of the examples in the package's examples directory - provide the results of sessionInfo() - tell us what version of OO - read the posting guide?
Max On Sun, Dec 13, 2009 at 2:17 PM, Michael Kubovy <kub...@virginia.edu> wrote: > Dear R-helpers, > > I'm trying to learn how to use odfSweave. > > Here is my source file (in /Users/mk/myTeach/2010-1-7720/odfWeave): > **************************************** > Analysis of the iris Data > > Created on \Sexpr{date()} > > <<loadLibs, echo = FALSE, results = hide>>= > # I usually load the libraries first so that any output produced by loading > the library does not end up in the document > library(MASS) > library(lattice) > library(grid) > data(iris) > @ > > This famous (Fisher's or Anderson's) iris data set gives the measurements in > centimeters of the variables sepal length and width and petal length and > width, respectively, for \Sexpr{dim(iris)[1]/3} flowers from each of > \Sexpr{length(levels(iris$Species))} species of iris. The species are > \Sexpr{paste(levels(iris$Species), collapse = ", ")}. > > Here is a bulleted list of the species: > <<showOutputList, echo = FALSE, results = xml>>= > odfItemize(levels(iris$Species)) > @ > **************************************** > > With > **************************************** > R version 2.10.0 (2009-10-26) > x86_64-apple-darwin9.8.0 > locale: > [1] C/C/en_US/C/C/C > attached base packages: > [1] grid stats graphics grDevices datasets utils methods > [8] base > other attached packages: > [1] MASS_7.3-4 odfWeave_0.7.10 XML_2.6-0 lattice_0.17-26 > [5] JGR_1.7-0 iplots_1.1-3 JavaGD_0.5-2 rJava_0.8-1 > loaded via a namespace (and not attached): > [1] Matrix_0.999375-32 lme4_0.999375-32 tools_2.10.0 > **************************************** > I run: > **************************************** >> odfWeave('simple1.odt','simpleOut.odt') > Copying simple1.odt > Setting wd to > /var/folders/TG/TG6nWu2pHYCI-BdWWiyMxU+++TI/-Tmp-//RtmplOpSLO/odfWeave13103539684 > Unzipping ODF file using unzip -o simple1.odt > > Removing simple1.odt > Creating a Pictures directory > > Pre-processing the contents > Sweaving content.Rnw > > Writing to file content_1.xml > Processing code chunks ... > 1 : term hide(label=loadLibs) > 2 : term xml(label=showOutputList) > > 'content_1.xml' has been Sweaved > > Removing content.xml > > Post-processing the contents > Removing content.Rnw > Removing styles.xml > Renaming styles_2.xml to styles.xml > Removing extra files > > Packaging file using zip -r simple1.odt . > Copying simple1.odt > Resetting wd > Removing > /var/folders/TG/TG6nWu2pHYCI-BdWWiyMxU+++TI/-Tmp-//RtmplOpSLO/odfWeave13103539684 > > Done > Warning message: > closing unused connection 3 (content.xml) > **************************************** > > When I try to open simpleOut.odt I get: "Format error discovered in the file > in sub-document content.xml at 22,124(row,col)." The file content.xml is > empty. > > > > > ______________________________________________ > Professor Michael Kubovy > University of Virginia > Department of Psychology > for mail add: > P.O.Box 400400 > Charlottesville, VA 22904-4400 > USA > for FedEx or UPS add: > Gilmer Hall, Room 102 > McCormick Road > Charlottesville, VA 22903 > USA > room phone > Office: B011 +1-434-982-4729 > Lab: B019 +1-434-982-4751 > Fax: +1-434-982-4766 > WWW: http://www.people.virginia.edu/~mk9y/ > > ______________________________________________ > 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. > -- Max ______________________________________________ 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.