Skip to content

address uninformative error for NULL engine in nearest_neighbor() #1199

@simonpcouch

Description

@simonpcouch

Code
nearest_neighbor() %>% set_engine(NULL)
Condition
Error in `if (object$engine == "liquidSVM") ...`:
! argument is of length zero

Noticed this in the transition to snapshot testing in #1190.

Metadata

Metadata

Assignees

No one assigned

    Labels

    upkeepmaintenance, infrastructure, and similar

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions