I'm trying to modify filename output in the Download Handler in R Shiny
activeUploadId <- reactiveVal(NULL) output$cleanedDownload <- downloadHandler( filename = activeUploadId(), content = function(file) file.copy(paste0("cleaned/", activeUploadId()), file))
Get this error: 'x' is NULL so the result will be NULL
Warning: Error in <-: replacement has length zero
I've also tried a filename with a function and unable to find a way to assign a filename (it changes for each user/processing).