Skip to content

order_by() could have an error hint when confused with arrange() #3357

@econandrew

Description

@econandrew

For those of us who sometimes have SQL on the brain...

> df <- df %>% order_by(value)
Error: `call` must be a function call, not a symbol
> df <- df %>% order_by(-value)
Error: Can't use matrix or array for column indexing
> df <- df %>% arrange(-value)

e.g. Did you mean to use arrange()?

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurea feature request or enhancementfuns 😆

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions