R-hub has a debian-clang-devel platform now, with the same ISO-8859-15
locale, so you can easily reproduce this with

rhub::check(<package-file>, platform = "debian-clang-devel")

To fix it, it is probably better to reproduce it locally, either via

rhub::local_check_linux(<package-file>, image = "rhub/debian-clang-devel")

and then re-using the container, or you can directly get the
rhub/debian-clang-devel Docker image.

Gabor


On Thu, Apr 11, 2019 at 9:38 AM David Gohel <david.go...@ardata.fr> wrote:
>
> Thank you!
>
> > Le 11 avr. 2019 à 10:36, Gábor Csárdi <csardi.ga...@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.go...@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.ga...@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.ga...@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.go...@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@r-project.org mailing list
> >> https://stat.ethz.ch/mailman/listinfo/r-package-devel
> >>
> >>
>

______________________________________________
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel

Reply via email to