[R] Sweave Error: c("'...Rnw'", "'...Rnw'") is not ASCII and does not declare an encoding

Prof Brian Ripley ripley at stats.ox.ac.uk
Mon Sep 10 13:13:34 CEST 2012


On 10/09/2012 11:49, Duncan Murdoch wrote:
> On 12-09-10 3:28 AM, Christian Hoffmann wrote:
>> Sorry to bother everyone. What has changed in Sweave since 2009?
>>
>> Sweave("Crs.Rnw")
>> Error: c("'Crs.HdrFct.Rnw'", "'Crs.Rnw'") is not ASCII and does not
>> declare an encoding
>>
>> No error in 2009 with the same files.
>>
>> heers
>>
>> Christian
>>
>
> vignettes are now required to declare their encodings.  If you didn't
> intend to include non-ascii characters, tools::showNonASCIIfile will
> display the problematic lines.

And if you did, there is a section called 'Encodings' in the Sweave 
manual (and has been for a year at least).


-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list