[Rd] Possible Bug In Validation of UTF-8 Sequences

2020-04-04 Thread brodie gaslam via R-devel
As per `?intToUtf8`, and in the comments to `valid_utf8`[1], R intends to prevent illegal UTF-8 such as UTF-8 encoded UTF-16 surrogate pairs.  `R_nchar`, invoked via `base::nchar`, explicitly validates UTF-8 strings[2], but allows the surrogate:     > Encoding('\ud800')     [1] "UTF-8"     > ncha

Re: [Rd] Help useRs to use R's own Time/Date objects more efficiently

2020-04-04 Thread J C Nash
As with many areas of R usage, my view is that the concern is one of making it easier to find appropriate information quickly. The difficulty is that different users have different needs. So if one wants to know (most of) what is available, the Time Series Task View is helpful. If one is a novice,

Re: [Rd] Help useRs to use R's own Time/Date objects more efficiently

2020-04-04 Thread Iñaki Ucar
On Sat, 4 Apr 2020 at 11:51, Martin Maechler wrote: > > This is mostly a RFC [but *not* about the many extra packages, please..]: > > Noticing to my chagrin how my students work in a project, > googling for R code and cut'n'pasting stuff together, accumulating > this and that package on the way

[Rd] Help useRs to use R's own Time/Date objects more efficiently

2020-04-04 Thread Martin Maechler
This is mostly a RFC [but *not* about the many extra packages, please..]: Noticing to my chagrin how my students work in a project, googling for R code and cut'n'pasting stuff together, accumulating this and that package on the way all just for simple daily time series (though with partly missi