[Rd] package encoding warning
Prof Brian Ripley
ripley at stats.ox.ac.uk
Sat Jul 30 07:29:58 CEST 2011
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
> complains about unused variable in c++ code; this I understand as my
> mistake, I'll fix it.
> is happy, no warning
> 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
> 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
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,
> R-devel at r-project.org mailing list
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