How to display and select files in directory


#1

I need to code the following functionality: Display a list of files from the directory and ask the user to select one, many or all the files from the directory. Would you suggest the right approach would be using the shinyFiles package?


#2

I don’t have a lot of experience with shinyFiles, but looking at the documentation it seems possible to select multiple files, through the ‘multiple’ parameter, so that’s probably your most polished and user-friendly option.

Using fileInput() is another option: https://itsalocke.com/blog/r-quick-tip-upload-multiple-files-in-shiny-and-consolidate-into-a-dataset/


#3

Thanks a lot Nick.

Giuseppa