I'm trying to convert a data-frame to csv file and while I do that I get the following error, why is that so?
write.csv(packages, file = "packages.csv", row.names = FALSE)
Error in file(file, ifelse(append, "a", "w")) :
cannot open the connection
In addition: Warning message:
In file(file, ifelse(append, "a", "w")) :
cannot open file 'packages.csv': Permission denied