Yihui Xie
2012-Apr-13 20:08 UTC
[R] is there a way to call python like source(file, echo = TRUE) in R?
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 <xieyihui at gmail.com> Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA