<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body ><div>Try writing to a directory under the root. Windows blocks writing a file to "c:"</div><div><br></div><div><br></div><div><div style="font-size:9px;color:#575757">Sent from my Verizon Wireless 4G LTE Smartphone</div></div><br><br><div>-------- Original message --------</div><div>From: Ingeborg <ica@ign.ku.dk> </div><div>Date:02/11/2015 06:42 (GMT-05:00) </div><div>To: datatable-help@lists.r-forge.r-project.org </div><div>Subject: [datatable-help] export from r </div><div><br></div>The code:<br>mydata <- data.frame(c0_1,c0_2,dsoc) <br>mydata<br>write.table(mydata, "c:/mydata.txt", sep="\t") <br><br>gives the error message:<br><br>Error in file(file, ifelse(append, "a", "w")) : <br> cannot open the connection<br>In addition: Warning message:<br>In file(file, ifelse(append, "a", "w")) :<br> cannot open file 'c:/mydata.txt': Permission denied<br><br>Any idea about why this happens ? I tried it on two different windows PC's<br><br><br><br>--<br>View this message in context: http://r.789695.n4.nabble.com/export-from-r-tp4703083.html<br>Sent from the datatable-help mailing list archive at Nabble.com.<br>_______________________________________________<br>datatable-help mailing list<br>datatable-help@lists.r-forge.r-project.org<br>https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help<br></body>