Hi community - i've been struggling with this all morning - why do i keep getting this error - i'm simply trying to write a CSV file to my outfolder location
I had a look at this. The problem would seem to be that file as an argument doesn't actually exist and you want to have path.
The second point and this might be slightly more involved. The way in which you specified the output might not work as I am not sure exactly what sort of object outfolder is. If it is an actual folder in your system and you are working within an R project I would recommend doing the following:
This will take your working directory and see if outfolder is there then build the path to save your .csv at the right location. The here package was designed to solve a lot of the pathing problems.