Although the [data descriptors](https://tidymodels.github.io/parsnip/reference/descriptors.html) can solve this, we should look at capping the value of any tuning parameters that are based on either `nrow()` or `ncol()`. For example, with `mtry` in random forests, we should, somewhere use `mtry = max(mtry, ncol(x))`.