R BATCH jobs from Python

Istvan Albert ialbert at mailblocks.com
Sun Nov 21 10:13:37 EST 2004


Benjamin Scott wrote:

> them.  i still can't run an analogous procedure from python.  i have
> attempted to use os.system, the popen family.  i feel like part of the

This is what I use (works on windows and unix):

inf, outf, errf = os.popen3("R -slave < myscript.R")

You need to have R in your path of course.

Istvan.



More information about the Python-list mailing list