
Saudações, Estou montando um micro tutorial de odfWeave e observei problemas na geração de documentos. Eu tenho um arquivo odf, gerado pelo OpenOffice Writer com o seguinte conteúdo #---- conteúdo do arquivo odf, walmes_teste1.odf ---- Isso é um teste <<teste, echo=TRUE>> x <- rnorm(100,50,3) summary(x) @ #---- fim do arquivo walmes_teste1.odf --- Abro uma sessão R para compilar por meio dos comandos que apresentam a mensagem de erro abaixo. *> odfWeave("walmes_teste1.odt", "walmes_saida1.odt")* Copying walmes_teste1.odt Setting wd to /tmp/RtmpCE5KJb/odfWeave24115817941 Unzipping ODF file using unzip -o walmes_teste1.odt Archive: walmes_teste1.odt 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: content.xml inflating: manifest.rdf inflating: styles.xml extracting: meta.xml inflating: Thumbnails/thumbnail.png inflating: settings.xml inflating: META-INF/manifest.xml Removing walmes_teste1.odt Creating a Pictures directory Pre-processing the contents Sweaving content.Rnw *Erro: ‘content.Rnw’ is not ASCII and does not declare an encoding* Se eu removo o e acentuado da frame "isso é um teste" para "isso e um teste", a compilação tem sucesso. Googlei e não encontrei alternativas para superar o problema. Minha sessão R é *> sessionInfo()* R version 2.15.0 (2012-03-30) Platform: i486-pc-linux-gnu (32-bit) locale: [1] LC_CTYPE=pt_BR.utf8 LC_NUMERIC=C [3] LC_TIME=pt_BR.utf8 LC_COLLATE=pt_BR.utf8 [5] LC_MONETARY=pt_BR.utf8 LC_MESSAGES=pt_BR.utf8 [7] LC_PAPER=C LC_NAME=C [9] LC_ADDRESS=C LC_TELEPHONE=C [11] LC_MEASUREMENT=pt_BR.utf8 LC_IDENTIFICATION=C attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] odfWeave_0.7.17 XML_3.6-1 lattice_0.20-6 loaded via a namespace (and not attached): [1] grid_2.15.0 tools_2.15.0 Estou no Ubuntu 10.04 com o seguinte resultado de locale walmes@galibi:~$ locale LANG=pt_BR.utf8 LANGUAGE=pt_BR:pt:en LC_CTYPE="pt_BR.utf8" LC_NUMERIC="pt_BR.utf8" LC_TIME="pt_BR.utf8" LC_COLLATE="pt_BR.utf8" LC_MONETARY="pt_BR.utf8" LC_MESSAGES="pt_BR.utf8" LC_PAPER="pt_BR.utf8" LC_NAME="pt_BR.utf8" LC_ADDRESS="pt_BR.utf8" LC_TELEPHONE="pt_BR.utf8" LC_MEASUREMENT="pt_BR.utf8" LC_IDENTIFICATION="pt_BR.utf8" LC_ALL= walmes@galibi:~$ Alguém tem alguma sugestão? Grato. Walmes. ========================================================================== Walmes Marques Zeviani LEG (Laboratório de Estatística e Geoinformação, 25.450418 S, 49.231759 W) Departamento de Estatística - Universidade Federal do Paraná fone: (+55) 41 3361 3573 VoIP: (3361 3600) 1053 1173 e-mail: walmes@ufpr.br twitter: @walmeszeviani homepage: http://www.leg.ufpr.br/~walmes linux user number: 531218 ==========================================================================