I have a Shiny app where I can read multiple files. Now, I'd like to collect these file objects in a list to use them in a function called evalm. The function works fine for one selected file but fails when I select multiple files and attempt to use them in the evalm function.
The error I get is Warning: Error in gzfile: invalid 'description' argument
files <- readRDS(file$datapath) # this reads in multiple files
results <- MLeval::evalm(list(files)) # works ok with one file but fails on more than one file selected above
I followed the evalm vignette using the exact syntax https://cran.r-project.org/web/packages/MLeval/vignettes/introduction.pdf
I believe I need to pass in a list, in this case they are caret models saved as .RDS files. Any suggestions on getting this to work is appreciated!