[R-pkg-devel] Check Flavor r-devel-linux-x86_64-debian-clang charset
David Gohel
d@v|d@gohe| @end|ng |rom @rd@t@@|r
Thu Apr 11 10:38:30 CEST 2019
Thank you!
> Le 11 avr. 2019 à 10:36, Gábor Csárdi <csardi.gabor using gmail.com> a écrit :
>
> I think in R you can use
> ❯ l10n_info()
> $MBCS
> [1] TRUE
>
> $`UTF-8`
> [1] TRUE
>
> $`Latin-1`
> [1] FALSE
>
> G.
>
> On Thu, Apr 11, 2019 at 9:20 AM David Gohel <david.gohel using ardata.fr> wrote:
>>
>> Yes, it seems so.
>>
>> Thanks Gabor, if possible, a docker for that case would be welcome.
>>
>> I think I solved my issues. I set the locale in my cpp code:
>>
>> setlocale(LC_NUMERIC, "C");
>>
>> In the R code, I am testing if the locale is set to UTF-8 with the following code but I am not sure this is the best solution:
>>
>> # Only when not windows
>> has_locale <- Sys.which("locale") != ""
>> is_utf_8 <- has_locale && (system(command = "locale charmap", intern = TRUE) == "UTF-8")
>>
>> If someone has an advice, it will be welcomed :)
>>
>>
>>
>> David Gohel
>>
>>
>>
>> Le 11 avr. 2019 à 10:04, Gábor Csárdi <csardi.gabor using gmail.com> a écrit :
>>
>> I just got the CRAN ultimatum about a package of mine failing in that
>> locale, so yes, it definitely seems intentional.
>>
>> Gabor
>>
>> On Wed, Apr 10, 2019 at 3:33 PM Gábor Csárdi <csardi.gabor using gmail.com> wrote:
>>
>>
>> If the charset choice is intentional, then we can add a builder/docker
>> image for this on R-hub.
>>
>> It would certainly make sense to have a builder with an unusual charset.
>>
>> Gabor
>>
>> On Wed, Apr 10, 2019 at 11:43 AM David Gohel <david.gohel using ardata.fr> wrote:
>>
>>
>> Dear all,
>>
>> Among the CRAN machines used by Check, "r-devel-linux-x86_64-debian-clang" has been upgraded from UTF-8 to ISO8859-15.
>>
>> # using R Under development (unstable) (2019-04-07 r76333)
>> # using platform: x86_64-pc-linux-gnu (64-bit)
>> # using session charset: ISO8859-15
>>
>> I realized that while reading an error that appeared few days ago on a package I maintain:
>> https://cran.r-project.org/web/checks/check_results_fpeek.html <https://cran.r-project.org/web/checks/check_results_fpeek.html>
>>
>> My question is not how to fix my error but about the setting.
>>
>> Does anyone know why and if that setting will stay as is?
>>
>>
>> Kind regards,
>> David Gohel
>>
>>
>> [[alternative HTML version deleted]]
>>
>> ______________________________________________
>> R-package-devel using r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-package-devel
>>
>>
More information about the R-package-devel
mailing list