Try writing to a directory under the root. Windows blocks writing a file to "c:"


Sent from my Verizon Wireless 4G LTE Smartphone

<div>-------- Original message --------</div><div>From: Ingeborg 
<[email protected]> </div><div>Date:02/11/2015  06:42  (GMT-05:00) </div><div>To: 
[email protected] </div><div>Subject: [datatable-help] 
export from r </div><div>
</div>The code:
mydata <- data.frame(c0_1,c0_2,dsoc) 
mydata
write.table(mydata, "c:/mydata.txt", sep="\t") 

gives the error message:

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:/mydata.txt': Permission denied

Any idea about why this happens ? I tried it on two different windows PC's



--
View this message in context: 
http://r.789695.n4.nabble.com/export-from-r-tp4703083.html
Sent from the datatable-help mailing list archive at Nabble.com.
_______________________________________________
datatable-help mailing list
[email protected]
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help
_______________________________________________
datatable-help mailing list
[email protected]
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help

Reply via email to