I am trying to pass multiple metrics m into metric_set () but the function requires a list of functions. Suggestions how I can do this? I need this for a shiny app:
My shiny app has an input for metrics called input$m8_metric and the available selections are m. Passing input$m8_metric using !!!m into metric_set() still results in an error.
A print of the selected input$m8_metric to the console looks correct:
print(paste0("Input = ",input$m8_metric))
"Input = function (data, ...) \n{\n UseMethod(\"accuracy\")\n}"
however when passing m into the function I get this error:
m <- input$m8_metric
m1 <- metric_set(!!!m)
Warning: Error in : All inputs to `metric_set()` must be functions. These inputs are not: (1).