Thank you, Jim! I was just trying this as you wrote. Testing it on a small sample - it seems to work! I am curious - I removed the data that was stored in memory (using rm()), and checked to see that it was gone using ls() - and it was; but I didn't see a concurrent reduction in the Memory Usage on my Performance Window. Did the rm() actually free up memory (it didn't seem to)?
Many thanks for your response! PS - for any interested, the sink function did not help. My vector was longer that what is printed, so when I checked the file, only part of the data was there. But save definitely seems to be the way to go here. -- View this message in context: http://r.789695.n4.nabble.com/writing-output-directly-to-file-sink-tp4506432p4507059.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.