I need to let the users upload multiple text files with data and save them to a temporary directory. Then I want to batch process all the text files in that temporary directory. Can anyone help me create this temporary directory and get the path to this temporary directory so that I can submit the directory address/name to a function that will then batch process all files in that directory? This is needed for a shiny app. I also want to host this app on shinyapps.io.
Snippets from ui.r
fileInput( "data", "Choose Monitor Files", multiple = TRUE, accept = c("text/csv","text/comma-separated-values,text/plain",".csv"))
Snippets from server.r
metadata_proc <- link_dam_metadata(metadata, result_dir = getwd())
the function link_dam_metadata attaches the metadata to respective files in the folder (by getwd()).
Also posted on reddit