I have an editable DT in a flexdashboard that can be downloaded using the builtin download buttons.
Unfortunately, this opens up a dialogue box to select where it will be downloaded.
How can I download this as a csv directly into the same working directory as it is running in? Similar to when I run r script and save with write.csv(data, "data.csv"), saves in the same directory
ie:
If it is running in C:/PATH/dir/flexdashboard.Rmd
I would like it to be downloaded to C:/PATH/dir/data.csv