An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20100501/256a0a79/attachment.pl>
Errors when trying to open odfWeave documents
7 messages · Dieter Menne, Paul Bivand, Max Kuhn
Paul Hurley wrote:
Is there a known problem with odfWeave on Windows? I've seen some messages on R-help from a year or two back where people couldn't install the XML package, but XML installed fine on my Windows box (it was more tricky on Kubuntu, but worked in the end).
There was a problem with XML and odfWeave on Windows, probably you read one of my posts. I normally use LateX, but I tried odfWeave and the examples that failed at that time today with odfWeave_0.7.11 XML_2.8-1 , and it worked. It would be helpful if you could prune your text to the smallest size that shows the effect, and post it again; best put it on some web site for download, since most attachments are not permitted on this list. Dieter
View this message in context: http://r.789695.n4.nabble.com/Errors-when-trying-to-open-odfWeave-documents-tp2073602p2122927.html Sent from the R help mailing list archive at Nabble.com.
1 day later
I tried with this: > sessionInfo() R version 2.10.1 (2009-12-14) i386-pc-mingw32 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] stats graphics grDevices utils datasets methods base other attached packages: [1] odfWeave_0.7.11 XML_2.8-1 lattice_0.17-26 loaded via a namespace (and not attached): [1] grid_2.10.1 tools_2.10.1 OO 3.2.0 Win XP I didn't have any issues with the testcases.odt and examples.odt files. :-/ On Sun, May 2, 2010 at 11:39 AM, Dieter Menne
<dieter.menne at menne-biomed.de> wrote:
Paul Hurley wrote:
Is there a known problem with odfWeave on Windows? ?I've seen some messages on R-help from a year or two back where people couldn't install the XML package, but XML installed fine on my Windows box (it was more tricky on Kubuntu, but worked in the end).
There was a problem with XML and odfWeave on Windows, probably you read one of my posts. I normally use LateX, but I tried odfWeave and the examples that failed at that time today with odfWeave_0.7.11 XML_2.8-1 , and it worked. It would be helpful if you could prune your text to the smallest size that shows the effect, and post it again; best put it on some web site for download, since most attachments are not permitted on this list.
Max
1 day later
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20100504/dad5f246/attachment.pl>
1 day later
Can you send the rest of the sessionInfo() results? I'd like to see your locale. Thanks, Max
On Tue, May 4, 2010 at 5:12 PM, Paul <paul at paulhurley.co.uk> wrote:
Max Kuhn wrote: I tried with this:
> sessionInfo()
R version 2.10.1 (2009-12-14) i386-pc-mingw32 <snip> I didn't have any issues with the testcases.odt and examples.odt files. :-/ On Sun, May 2, 2010 at 11:39 AM, Dieter Menne <dieter.menne at menne-biomed.de> wrote: Paul Hurley wrote: Is there a known problem with odfWeave on Windows? ?I've seen some messages on R-help from a year or two back where people couldn't install the XML package, but XML installed fine on my Windows box (it was more tricky on Kubuntu, but worked in the end). There was a problem with XML and odfWeave on Windows, probably you read one of my posts. I normally use LateX, but I tried odfWeave and the examples that failed at that time today with odfWeave_0.7.11 XML_2.8-1 , and it worked. It would be helpful if you could prune your text to the smallest size that shows the effect, and post it again; best put it on some web site for download, since most attachments are not permitted on this list. I've tried again, and still get the error.? I've posted the console output and my input and output odt files on my websit, along with where OpenOffice reports an error. Console Output: www.paulhurley.co.uk/images/stories/R/simplerverbose_console_output.txt formatting Example File Output (Error at 1293,124) www.paulhurley.co.uk/images/stories/R/formattingOut.odt Simpler Input (odt file with one sexpr only) www.paulhurley.co.uk/images/stories/R/simpler.odt Simpler Output (error at 68,124) www.paulhurley.co.uk/images/stories/R/simplerOut.odt Simplest Input (odt file with no R at all) www.paulhurley.co.uk/images/stories/R/simplest.odt Simplest Output (error at 68,124) www.paulhurley.co.uk/images/stories/R/simplestOut.odt In each file the line that seems to be a problem is like this ??? <text:list-level-style-bullet text:level="1" text:style-name="Bullet_20_Symbols" style:num-suffix="." text:bullet-char="?<U+009C><U+0094>" > I assume the question mark is the problem, but don't know what causes the question mark I have also tried setting my R installation to a US locale instead of UK (as Max reports his works, and the only difference is the locale) but the US locale still produces files with this error. I also checked that odfWeave seems to be using the zip.exe from the RTools set.? This is v2.32 by Info-Zip.? I tried telling odfWeave to use WinZip but I get the same issues. (and have no reason to blame zip). Sorry about the rambling post, but I don't have a clue what to try next. Regards Paul.
Max
1 day later
Max Kuhn wrote:
Can you send the rest of the sessionInfo() results? I'd like to see your locale. Thanks, Max
Hi Max, I've put the locale info below. I wanted to let you know that I tried some things again today, starting from scratch, and found that if I just ran the odfWeave command, my files were readable, but after I ran the lines from the formatting.R file they gave the error. I eventually tracked the problem down to the line ; basicStyles$wideBullet$bulletChar="\342\234\224" causes the outputs to give the error. If I comment it out everything works fine. I assume that this is a problem with the fonts available on my system ? That if the symbol referenced by \342\234\224 isn't available then the file ends badly ? Let me know if you have any other ideas, but otherwise, thanks hugely for the odfWeave package, it's probably saved R from not being used at all at my work (top ten Pharma). Here's the locale info, Regards, Paul. > sessionInfo() R version 2.10.1 (2009-12-14) i386-pc-mingw32 locale: [1] LC_COLLATE=English_United Kingdom.1252 LC_CTYPE=English_United Kingdom.1252 LC_MONETARY=English_United Kingdom.1252 [4] LC_NUMERIC=C LC_TIME=English_United Kingdom.1252 attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] odfWeave_0.7.11 XML_2.8-1 lattice_0.18-3 loaded via a namespace (and not attached): [1] grid_2.10.1 tools_2.10.1 > Sys.getlocale() [1] "LC_COLLATE=English_United Kingdom.1252;LC_CTYPE=English_United Kingdom.1252;LC_MONETARY=English_United Kingdom.1252;LC_NUMERIC=C;LC_TIME=English_United Kingdom.1252"
Paul, That line defines the bullet character. I don't think that you'll be missing much by excluding it. I think that to avoid these issues, you should use a utf-8 locale. The one that I get in my sessions is: locale: [1] en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8 I'm sure that there are UK locales that would work. xml tends to be defined in terms of utf8 character sets (at least I see those characters a lot in xml files), so this might be a good idea for you to do. How to do it is beyond me. Max
On Fri, May 7, 2010 at 4:26 PM, Paul <paul at paulhurley.co.uk> wrote:
Max Kuhn wrote:
Can you send the rest of the sessionInfo() results? I'd like to see your locale. Thanks, Max
Hi Max, I've put the locale info below. ?I wanted to let you know that I tried some things again today, starting from scratch, and found that if I just ran the odfWeave command, my files were readable, but after I ran the lines from the formatting.R file they gave the error. I eventually tracked the problem down to the line ; basicStyles$wideBullet$bulletChar="\342\234\224" causes the outputs to give the error. ?If I comment it out everything works fine. ?I assume that this is a problem with the fonts available on my system ? ?That if the symbol referenced by \342\234\224 isn't available then the file ends badly ? Let me know if you have any other ideas, but otherwise, thanks hugely for the odfWeave package, it's probably saved R from not being used at all at my work (top ten Pharma). Here's the locale info, Regards, Paul.
sessionInfo()
R version 2.10.1 (2009-12-14) i386-pc-mingw32 locale: [1] LC_COLLATE=English_United Kingdom.1252 ?LC_CTYPE=English_United Kingdom.1252 ? ?LC_MONETARY=English_United Kingdom.1252 [4] LC_NUMERIC=C ? ? ? ? ? ? ? ? ? ? ? ? ? ?LC_TIME=English_United Kingdom.1252 attached base packages: [1] stats ? ? graphics ?grDevices utils ? ? datasets ?methods ? base other attached packages: [1] odfWeave_0.7.11 XML_2.8-1 ? ? ? lattice_0.18-3 loaded via a namespace (and not attached): [1] grid_2.10.1 ?tools_2.10.1
Sys.getlocale()
[1] "LC_COLLATE=English_United Kingdom.1252;LC_CTYPE=English_United Kingdom.1252;LC_MONETARY=English_United Kingdom.1252;LC_NUMERIC=C;LC_TIME=English_United Kingdom.1252"
Max