Re: [Rd] package encoding warning

From: baptiste auguie <baptiste.auguie_at_googlemail.com>
Date: Sat, 30 Jul 2011 19:39:09 +1200

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,

baptiste

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
>



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Sat 30 Jul 2011 - 07:41:59 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 30 Jul 2011 - 13:50:12 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive