[R] is there a way to call python like source(file, echo = TRUE) in R?
xie at yihui.name
Fri Apr 13 22:08:17 CEST 2012
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"'
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
More information about the R-help