[R] Encoding of Sweave file error message
Duncan Mackay
mackay at northnet.com.au
Thu Apr 12 14:59:11 CEST 2012
Hi Rainer
Thanks for an alternative. For the record I tried
your latex solution on my Windows 7
\usepackage[utf8x]{inputenc}
but it failed on the Alt-248
Regards
Duncan
At 19:13 12/04/2012, you wrote:
>I also had the same problem.
>
>Being on Linux, I prefer Walmes' command line method but I found that putting
>\usepackage[utf8x]{inputenc}
>as the first instruction in the master .Rnw file
>also does the trick. No need to change anything
>after that in the file, at least not for me!
>
>Rgds,
>Rainer
>
>
>On Thursday 12 April 2012 14:13:06 Duncan Mackay wrote:
> >
> > At 12:03 12/04/2012, you wrote:
> > >I had the same problem! So, as I'm a linux user,
> > >I prefer use linux terminal. On terminal I type this to compile
> > >
> > >R CMD Sweave --encoding=utf-8 myfile.Rnw
> > >
> > >and the compilation is successful. Try to
> set the encoding option in Sweave().
> > >
> > >Bests.
> > >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: <mailto:walmes at ufpr.br>walmes at ufpr.br
> > >twitter: @walmeszeviani
> > >homepage: <http://www.leg.ufpr.br/%7Ewalmes>http://www.leg.ufpr.br/~walmes
> > >linux user number: 531218
> > >==========================================================================
> >
> > Hi Walmes
> >
> > Thank you very much. That appears to be the problem.
> > When I typed from the DOS terminal
> >
> > I have exactl ParasiteComb12.Rnw
> >
> > it compiled the tex file without any error messages.
> >
> > I have not really got into font encoding and
> > reading the Sweave manual I thought that what
> I had done would be sufficient.
> >
> > I found an old note which gave a reference to
> > http://tolstoy.newcastle.edu.au/R/e10/help/10/05/4725.html
> > http://tolstoy.newcastle.edu.au/R/e10/help/10/05/4889.html
> > but that appears to be specific.
> >
> > The ?Sweave and the Sweave manual appear to be
> > more specific about the latex side.
> >
> > After having a look at iconvlist() and bearing
> > in mind Duncan Murdoch's comments about windows I tried
> >
> > Sweave("D:/Cic/Sweave/Parasite/Comb/12/ParasiteComb12.Rnw",
> > encoding = "UTF-8")
> >
> > from the Rgui command window and compiled without any problems
> > When I had a look at the tex file there were a
> > few DOS Alt-248 (degree symbol ) within latex
> > comments which were added last running R2.14 before updating
> >
> > Removing them and re running without the encoding
> > argument brought things back to normal.
> >
> > I tried as a test
> > \SweaveOpts{encoding="UTF8"}
> > but that appears not to work
> >
> > All I have to do now is to put the extra argument
> > into my text editors clip library for Sweave for
> > next time when I cannot solve things.
> > Its been a long week !
> >
> > Regards
> >
> > Duncan
> >
> >
> > Duncan Mackay
> > Department of Agronomy and Soil Science
> > University of New England
> > ARMIDALE NSW 2351
> > Email home: mackay at northnet.com.au
> >
> >
> >
> >
> >
> > [[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.
More information about the R-help
mailing list