Sorry this is more like a Python question, but I believe many R users also know well about Python, so here is my question: I want to run python code like source(file, echo = TRUE) in R, i.e. echo both the source code and the output.
This only shows the output: python -c 'print "hello"' Thanks! Regards, Yihui -- Yihui Xie <xieyi...@gmail.com> Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA ______________________________________________ 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.