Downloading a File From R Studio Server

Hi all,

We are using R Studio Server at our company. We have a technical issue and are hoping that someone could guide us.

We would like to create a script to export a data frame to our local machine running Windows. We managed to successfully export the data frame as a .csv file manually to the hard drive by following these steps:
Files > More > Export.

However, we want to automatize it and schedule the script to run every day.

Could you please help us and what would you suggest in this case?

Best regards and many thanks.
Bugra