Abelian <abelian1982 <at> gmail.com> writes:

 
> i have to utilize the R to report the simulation result by txt file.
> However, i have to write some introduction and explanination before
> the result.
> by the way,, there are variables follow with "Input directory name:"
> "Output directory name:", "The number of study groups:" etc

FINAL = TRUE
if (FINAL) sink("mydoc.txt") 

age = 33
cat("I am", age, "years old\n")

if (FINAL) sink()


But if you have more to say, better check Sweave/latex or odfWeave.

Dieter

______________________________________________
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.

Reply via email to