这是我尝试过的代码,我尝试过的方法。基本上我只是想知道权限被拒绝的部分。
data <- matrix(c(1,2,3,4), ncol=2)
write.csv(data,"C:/Users/brian_000/Documents")
错误:
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 'C:/Users/brian_000/Documents': Permission denied
write.csv(data, file="C:/Users/brian_000/Documents")
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 'C:/Users/brian_000/Documents': Permission denied