Skip to content

purrr:contains and dplyr::contains is likely to cause confusion #217

Closed
@sebastiansauer

Description

@sebastiansauer

Both purrr and dplyr have a contains() function, but with different syntax.

For example, if I load dplyr first, and purr afterwards, it will bite me:

   library(dplyr)
   library(purrr)
   data(tips, package = "reshape2")
   tips %>% select(contains("total"))
   ## Error in .p(.x[[i]], ...) : argument ".y" is missing, with no default

May it would be helpful to disambiguate the two functions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions