So this kind of log is incomplete. This information should be available to business users to check the accuracy of the pre-process steps or just for model documentation
Is there any way of getting a complete log from recipe steps execution to file?
The truncation of the message is an artifact of the print() method for a prep'd recipe object. However, the names of the variables that are removed by the correlation step are retained as a character vector nested in the list object.
If you want to have a "log" of the recipe preparation, you can simply save the prepared object (po in the example below) to disk (such as with saveRDS()) and it will contain a record of all of the recipe information.
Here is an example:
library(recipes)
po <- recipe(mpg ~ ., mtcars) %>%
step_corr(all_predictors()) %>%
prep()
print(po)
#> Data Recipe
#>
#> Inputs:
#>
#> role #variables
#> outcome 1
#> predictor 10
#>
#> Training data contained 32 data points and no missing data.
#>
#> Operations:
#>
#> Correlation filter removed cyl [trained]
# Which columns removed by Step 1 (correlation)
po$steps[[1]]$removals
#> [1] "cyl"