[R] odfWeave problem "Error in xmlEventParse"

Fredrik Karlsson dargosch at gmail.com
Tue Feb 24 16:10:32 CET 2009


Dear list,

Sorry for bothering you with a pure odfSweave question, but I just ran
into a problem that I cannot find the cause of.
Anyonse seen this before? This file "used to work", but not anymore.

Would apreciate all the help I could get.

/Fredrik


---------------------------------------------------------------

> odfWeave("Descriptives/IPDesc.odt","IPDescOut.odt")
  Copying  Descriptives/IPDesc.odt
  Setting wd to
/var/folders/IV/IVKgtoUIF3CjOMG8Rfyjo++++TU/-Tmp-//RtmpPbfKbO/odfWeave24150415398
  Unzipping ODF file using unzip -o IPDesc.odt
Archive:  IPDesc.odt

  Removing  IPDesc.odt
  Creating a Pictures directory

  Pre-processing the contents
 extracting: mimetype
   creating: Configurations2/statusbar/
  inflating: Configurations2/accelerator/current.xml
   creating: Configurations2/floater/
   creating: Configurations2/popupmenu/
   creating: Configurations2/progressbar/
   creating: Configurations2/menubar/
   creating: Configurations2/toolbar/
   creating: Configurations2/images/Bitmaps/
  inflating: layout-cache
  inflating: content.xml
  inflating: styles.xml
 extracting: meta.xml
  inflating: Thumbnails/thumbnail.png
  inflating: settings.xml
  inflating: META-INF/manifest.xml
  Sweaving  content.Rnw

  Writing to file content_1.xml
  Processing code chunks ...
    1 : term verbatim(label=Init)
    2 : term xml(label=IPTransSummary_SL)
    3 : term xml(label=IPTransSummary_SP)
    4 : term xml(label=IPTransSummary_SL_CY)
    5 : term xml(label=IPTransSummary_SP_CY)
    6 : term xml(label=IPTransSummary_SP_CY_SE)
    7 : term xml(label=IPTransSummary_SL_IPL)
    8 : term xml(label=IPTransSummary_SP_IPL)
    9 : term xml(label=IP_CY_SL_mean)
   10 : term xml(label=IP_CY_SL_sd)
   11 : term verbatim(label=IPLenWords_CY_SL_bwplot)
   12 : term verbatim(label=IPLenWords_SL_CY_bwplot)
   13 : term xml(label=IP_CY_SP_mean)
   14 : term xml(label=IP_CY_SP_sd)
   15 : term verbatim(label=IPLenWords_CY_SP_bwplot)
   16 : term verbatim(label=IPLenWords_SP_CY_bwplot)
   17 : term xml(label=IP_CY_SL_mean)
   18 : term xml(label=IP_CY_SL_sd)
   19 : term verbatim(label=IPLenSylls_CY_SL_bwplot)
   20 : term verbatim(label=IPLenSylls_SL_CY_bwplot)
   21 : term xml(label=IP_CY_SP_mean)
   22 : term xml(label=IP_CY_SP_sd)
   23 : term verbatim(label=IPLenSylls_CY_SP_bwplot)
   24 : term verbatim(label=IPLenSylls_SP_CY_bwplot)
   25 : term verbatim(label=IplenCalc)
   26 : term xml(label=WordLenSyll_CY_SL_mean)
   27 : term xml(label=WordLenSyll_CY_SL_sd)
   28 : term verbatim(label=WordLenSyll_CY_SL_bwplot)
   29 : term verbatim(label=WordLenSyll_SL_CY_bwplot)
   30 : term xml(label=WordLenSyll_CY_SP_mean)
   31 : term xml(label=WordLenSyll_CY_SP_sd)
   32 : term verbatim(label=WordLenSyll_CY_SP_bwplot)
   33 : term verbatim(label=WordLenSyll_SP_CY_bwplot)
   34 : term verbatim(label=CleanTA)
   35 : term xml(label=IP_PA_CY_SL_mean)
   36 : term xml(label=IP_PA_CY_SL_sd)
   37 : term verbatim(label=IPLenTones_CY_SL_bwplot)
   38 : term verbatim(label=IPLenTones_SL_CY_bwplot)
   39 : term xml(label=IP_PA_CY_SP_mean)
   40 : term xml(label=IP_PA_CY_SP_sd)
   41 : term verbatim(label=IPLenTones_CY_SP_bwplot)
   42 : term verbatim(label=IPLenTones_SP_CY_bwplot)
   43 : term verbatim(label=IPClassrm)
   44 : term verbatim(label=IPClassDistRelRM_PA_SL_CY_Fig)
   45 : term verbatim(label=IPClassDistRelRM_PA_CY_SL_Fig)
   46 : term verbatim(label=IPClassDistRelRM_PA_CY_SP_Fig)
   47 : term xml(label=IPTrans_TS_SL_count)
   48 :(label=IPTrans_TS_SP_count)
   49 : term verbatim(label=close)

  'content_1.xml' has been Sweaved

  Removing content.xml

  Post-processing the contents
Error in xmlEventParse(infile, handlers = handlers, trim = FALSE,
state = state) :
  attempt to apply non-function
In addition: Warning message:
closing unused connection 3 (content.xml)
>

---------------------------------------------------------------



-- 
"Life is like a trumpet - if you don't put anything into it, you don't
get anything out of it."




More information about the R-help mailing list