writing the output file on shared drive over network

Hi, and welcome!

Please see the FAQ: What's a reproducible example (`reprex`) and how do I do one? Using a reprex, complete with representative data will attract quicker and more answers. For this question, I can't guess the network file system being used.

It's easy to write csv files to your current working directory with write.csv or, better, write_csv{readr}, but you have to provide a fully qualify pathname if the resting place is outside your working directory, which I guess they probably will be if you are storing to a network drive.