Re: [R-pkg-devel] Encoding problem

2017-01-30 Thread David Scott
Thanks Thierry, that indeed was the problem. I am not sure who to advise to correct the documentation in Writing R Extensions though because I was following the instructions there: "... the encoding may be declared using a comment like %!\VignetteEncoding{UTF-8} If the encoding is UTF-8, this

Re: [R-pkg-devel] Encoding problem

2017-01-30 Thread Thierry Onkelinx
Dear David, Have you tried removing the exclamation mark in %!\VignetteEncoding{UTF-8}? I think it should be %\VignetteEncoding{UTF-8} Best regards, ir. Thierry Onkelinx Instituut voor natuur- en bosonderzoek / Research Institute for Nature and Forest team Biometrie & Kwaliteitszorg / team Biome

[R-pkg-devel] Encoding problem

2017-01-29 Thread David Scott
I am trying to add a vignette to xtable showing how to incorporate some Chinese characters following an enquiry from a user. I can create the vignette satisfactorily just processing the knitr file normally, with the resulting pdf displaying Chinese characters in the R code and also as headings