Skip to content

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

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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