This is something of a brainstorming/best practices question. I have a scenario similar to the one described here, where the user can use a Shiny app to filter a dataset in various ways with different inputs, and then download the resulting filtered dataset.
I'm fine with the mechanics of getting that to happen, but what I would love to do is to save the current values of each filter as some sort of metadata: either as an additional file (maybe downloaded along with the dataset as a zip file?) or somehow embedded into the downloaded csv itself (at the bottom?). Currently, short of manually copying down the filter values, there's no way for the user to look back and determine which filter settings resulted in the dataset that they've downloaded.
Does anyone have ideas on how I might accomplish this, or have you seen something similar done? I guess another approach would be to use some sort of code system to store the filter values in the file name itself, but some of my filters have a lot (~100) of possible values, so that seems like it could get messy.
I'd appreciate any thoughts!