An "unknown" value for the mode argument of null_model() produces the error below even thought the documentation states this is a possible value.
parsnip::null_model(mode = "unknown")
#> Error in `parsnip::null_model()`:
#> ! `mode` should be one of: 'classification', 'regression'