download editable datatable from DT in flexdashboard

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

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.