Skip to content

Ensure that recycling uses tidyverse rules #878

@hadley

Description

@hadley

i.e. only recycle vectors of length 1.

Problems include at least:

purrr:::recycle_args(list(1, integer(0)))
#> Error in purrr:::recycle_args(list(1, integer(0))): all(lengths == 1L | lengths == n) is not TRUE
purrr::map2(integer(0), 1:2, list)
#> list()
purrr::pmap(list(integer(0), 1:2), list)
#> list()

Created on 2022-08-24 by the reprex package (v2.0.1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behaviormap 🗺️

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions