Rakknar ha scritto:
1. Make a log. I've been using Stata and there i have a great tool to register what the program do: the log file, wich it's a simple .txt file where Stata writes every output it makes (not graphics of course). When I wanted to make the same thing with R I started to use the function sink() but it only register the results of the commands (summaries for example) and not the commands itself, witch it's really uncomfortable because it's harder to find out to witch command that results come from.
A possible workaround could be: sink("ouputfile.txt") as.character("rnorm(5, mean = 0, sd = 1)") rnorm(5, mean = 0, sd = 1) sink() I know, it is not elegant, and a bit repetitive, but it could help. 8rino ______________________________________________ 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.