title: How to overwrite a CSV file in R?
body: <p>I want to output a CSV file to a specified location. The code should overwrite the existing CSV file at the specified location each time the code runs. </p>
  
  <p>I am getting an error saying :<br>
  Error in file(file, ifelse(append, "a", "w")) : 
    cannot open the connection</p>
  
  <p>Thanks in advance!</p>