Skip to content

Unhelpful error message when using dplyr::between() in join_by() #6838

@mgirlich

Description

@mgirlich

I accidentally used dplyr::between() instead of between() in join_by(). Not sure whether you want to accept it with a namespace or not but the error message isn't very helpful.

dplyr::join_by(dplyr::between(y, a, b))
#> Error in `as_string()`:
#> ! Can't convert a call to a string.
#> Backtrace:
#>     ▆
#>  1. └─dplyr::join_by(dplyr::between(y, a, b))
#>  2.   └─dplyr:::parse_join_by_expr(exprs[[i]], i, error_call = error_call)
#>  3.     └─rlang::as_string(expr[[1]])
#>  4.       └─rlang:::abort_coercion(x, "a string")
#>  5.         └─rlang::abort(msg, call = call)

Created on 2023-05-02 with reprex v2.0.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions