[英]How to overwrite a CSV file in R?
I want to output a CSV file to a specified location.我想将 CSV 文件输出到指定位置。 The code should overwrite the existing CSV file at the specified location each time the code runs.每次运行代码时,代码都应覆盖指定位置的现有 CSV 文件。
I am getting an error saying :我收到一条错误消息:
Error in file(file, ifelse(append, "a", "w")) : cannot open the connection文件错误(文件,ifelse(追加,“a”,“w”)):无法打开连接
Thanks in advance!提前致谢!
Probably your csv file is open.可能您的 csv 文件已打开。 Close it and try again关闭它并重试
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.