"This is why sink() has the split=TRUE option, which logs output to a connection and sends it to the screen. The R sink("analysis.log",split=TRUE) is almost identical to the Stata log using analysis.log
with sink() to close the log and flush to disk at the end of the session." I've already used that and it doesn't work. It only register the output, not the inputs. -- View this message in context: http://www.nabble.com/Several-simple-but-hard-tasks-to-do-with-R-tp25052563p25065630.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.