Skip to content

Specify which step produces error #420

@EmilHvitfeldt

Description

@EmilHvitfeldt

Not all steps report which step they are produced inside. It can lead to slowness when debugging. This is a more general issue that contains #394.

library(recipes)

recipe(~ ., data = iris) %>%
  step_dummy(Sepal.Length) %>%
  step_center(all_predictors()) %>%
  step_scale(all_predictors()) %>%
  prep()
#> Warning: The following variables are not factor vectors and will be ignored:
#> `Sepal.Length`
#> Error: The `terms` argument in `step_dummy` did not select any factor columns.

recipe(~ ., data = iris) %>%
  step_discretize(Species) %>%
  step_center(all_predictors()) %>%
  step_scale(all_predictors()) %>%
  prep()
#> Error: All columns selected for the step should be numeric

Created on 2019-12-01 by the reprex package (v0.3.0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurea feature request or enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions