I am trying to create a shiny app that can talk directly (backend) with tidymodels framework.
I have a problem related with recipe function.
After downloading/uploading the data and visualize and analyze the data. I would like to give the user the freedom to specify what the target variable is in order to start the modeling process.
The function in this case is inside an observeEvent with the following specifications.
recipe <- recipe(input$select_input_target_variable ~ ., data = dataset) %>% step_timeseries_signature(date) %>% step_normalize(all_predictors()) %>% step_corr(all_predictors(), threshold = 0.8)
And I get the following error message
"Warning: Error in : No in-line functions should be used here; use steps to define baking actions."
I would like to ask you how I could solve this problem, or a more elegant way in doing this
Thanks in advance