[R] Problem with odfWeave: Unescaped '<' not allowed in attributes values

From: Aleksey Naumov <anaumov_at_gmail.com>
Date: Tue, 13 May 2008 10:00:00 -0400


Dear R users,

I am having a problem with odfWeave: when I run

odfWeave('notes.odt', 'notes_out.odt')

I get a bunch of errors that start with "Unescaped '<' not allowed in attributes values" in post-processing:

  <snip>
...
  'content_1.xml' has been Sweaved

  Removing content.xml

  Post-processing the contents
Unescaped '<' not allowed in attributes values attributes construct error
error parsing attribute name
attributes construct error
xmlParseStartTag: problem parsing attributes Couldn't find end of Start Tag text:list-level-style-bullet line 2 error parsing attribute name
attributes construct error
xmlParseStartTag: problem parsing attributes Couldn't find end of Start Tag U line 2
Opening and ending tag mismatch: text:list-style line 2 and text:list-level-style-bullet
Unescaped '<' not allowed in attributes values ...
</snip>

I cannot determine the cause of this. The error seems to come and go erratically, as I experiment with deleting chunks of R code one by one and pasting them back, i.e. no single chunk seems to be responsible.

I am using the current version of odfWeave (0.7.5). The thing is, the file processed just fine in a previous version (0.7.3). Does anyone have any suggestion how to deal with this? I am now kind of locked since I cannot reproduce a report I was working on...

I also tried to downgrade to the previous working odfWeave version, however I could not the windows binary for anything other than the latest version 0.7.5. I attempted to install from source by installing Rtools (Rtools28.exe), however when I try to install odfWeave 0.7.3 (re-zipped from tar.gz) I get:

> install.packages(pkgs=c('C:/Archive/R/packages/odfWeave.zip',
'C:/Archive/R/packages/XML.zip'), repos=NULL) updating HTML package descriptions
> library(odfWeave)

Error in library(odfWeave) :
  'odfWeave' is not a valid package -- installed < 2.0.0?

What am I doing wrong? Is it possible to downgrade in this way? Any other suggestions how to overcome this problem would be very much appreciated.

Thank you,

Aleksey

        [[alternative HTML version deleted]]



R-help_at_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. Received on Tue 13 May 2008 - 14:43:17 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 13 May 2008 - 18:30:38 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive