In order to get help you should also provide the data, a sample at least, and the whole script.
Anyway I think the problem could be with the recipeselectors package.
Unfortunately I cannot load it, it is not available for my version of R.
Yes, it did the same for me (after adding back in some library's I missed)...But, the question remains. I was developing this as an example of best practices for building and assessing a single regression type model using Tidymodels workflows. I am sure some folks would prefer using the Feature Selection out side of the workflow and done in a previous step. It seems like for consistency sake during deployment it would be best to be inside the work flow. So, what is the right feature selection tool in Tidymodels for use inside the workflow?
Currently there is not any supervised feature selection step implemented in tidymodels.
As far as I know, it is a development priority for 2022 (Priorities for tidymodels 2022).
Anyway, I finally managed to run the feature selection inside the workflow.
For the linear model coefficients you should use step_select_linear(all_predictors(), outcome = "life_expectancy", top_p = 12)
By the way, note that threshold overrides top_p parameter.