With the (googledrive) package I use these functions to write a .csv file into my google drive daily which will overwrite the old .csv file and it works very well.