HI, I guess ?sink() may not work for you as you need the whole R console.
Have you tried library(TeachingDemos) ?txtStart(), ?txtStop() ? txtStart("foo.txt",commands=TRUE,results=TRUE,append=FALSE) <codes> txtStop() A.K. ----- Original Message ----- From: Felipe Carrillo <mazatlanmex...@yahoo.com> To: "r-h...@stat.math.ethz.ch" <r-h...@stat.math.ethz.ch> Cc: Sent: Sunday, December 16, 2012 8:30 PM Subject: [R] save to file Hi, What's the equivalent of "Save to File" from the R console File menu on an R routine? Just trying to capture the whole R console into a text file when my code fails. Felipe D. Carrillo Supervisory Fishery Biologist Department of the Interior US Fish & Wildlife Service California, USA http://www.fws.gov/redbluff/rbdd_jsmp.aspx [[alternative HTML version deleted]] ______________________________________________ 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. ______________________________________________ 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.