[Rd] package encoding warning

baptiste auguie baptiste.auguie at googlemail.com
Sat Jul 30 09:39:09 CEST 2011

Thank you -- since I don't understand the relevant discussion in
Writing R Extensions, I have now removed Encoding: UTF-8 from the
DESCRIPTION file; I also made sure that my surname and all text was in
plain ASCII.

Best regards,


On 30 July 2011 17:29, Prof Brian Ripley <ripley at stats.ox.ac.uk> wrote:
> On Sat, 30 Jul 2011, baptiste auguie wrote:
>> Dear list,
>> I'd like to get rid off a couple of warnings that have appeared in
>> checking my package on CRAN (I did not find them on my local machine
>> before submission). What puzzles me is that different platforms return
>> different warnings, only one of which I recognise as my obvious
>> mistake. The check results are at
>> http://cran.r-project.org/web/checks/check_results_planar.html
>> r-devel-linux-x86_64-gcc-fedora
>> complains about unused variable in c++ code; this I understand as my
>> mistake, I'll fix it.
>> r-patched-windows-ix86+x86_64
>> is happy, no warning
>> r-release-macosx-ix86
>> checking examples ... WARNING
>> checking a package with encoding 'UTF-8' in an ASCII locale
>> This one really puzzles me: I have a Encoding: UTF-8 directive in
>> DESCRIPTION, precisely because I thought it would take care of
>> encoding issues such as with my surname.
> Your 'thought' was unfounded: please re-read the relevant sections of the R
> manuals.
>> What does this mean, and what should I do about it?
> It means that your package cannot be checked correctly in that locale.
> You can avoid it by following the recommendations to use only ASCII, as you
> did in this message (or at least, it was ASCII by the time it reached me).
>> Similarly,
>> r-oldrel-macosx-ix86
>> checking whether package 'planar' can be installed ... WARNING
>> Found the following significant warnings:
>> Warning: 'DESCRIPTION' file has 'Encoding' field and re-encoding is not
>> possible
>> has me perplexed.
> Same: non-ASCII UTF-8 strings cannot be represented in the C (aka ASCII)
> locale.
> Now, I think it is a mistake to be checking in the C locale on Mac OS X as
> no end user will deliberately be using it, but that is the default for batch
> use on many OSes.  *But* the same encoding issues for European names will
> occur in, say, the Japanese Windows locale.
>> Best regards,
>> baptiste
>> ______________________________________________
>> R-devel at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-devel
> --
> 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-devel mailing list