On Wed, Mar 5, 2025 at 8:04 AM Serguei Sokol via R-devel <
r-devel@r-project.org> wrote:

> Le 05/03/2025 à 14:47, Hadley Wickham a écrit :
> > Unfortunately your test generates a false positive for httr2 (
> > https://cran.r-project.org/web/checks/check_results_httr2.html) and
> other
> > tidyverse packages where we use the base pipe in examples, but carefully
> > disable them for older versions of R.
> For exemple,  in one of reported files 'iterate_with_offset.Rd' (
> https://github.com/r-lib/httr2/blob/main/man/iterate_with_offset.Rd ),
> we can see :
>
> \examples{
> req <- request(example_url()) |>
>    req_url_path("/iris") |>
>    req_throttle(10) |>
>    req_url_query(limit = 50)
> ...
>
> the pipe '|>' is well used but I didn't find any check for R version
> prior to 4.1. May be it is done elsewhere?
>

Yes: look at the configure script + tools/examples.R

We automatically test all tidyverse packages with the last four versions of
R, and you can see that all checks are fine with R 4.0.5 at (e.g.)
https://github.com/r-lib/httr2/actions/runs/13665095780/job/38204665013

Hadley

-- 
http://hadley.nz

        [[alternative HTML version deleted]]

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

Reply via email to