R BATCH jobs from Python
Heiko Wundram
heikowu at ceosg.de
Sun Nov 21 03:48:35 EST 2004
Am Sonntag, 21. November 2004 01:04 schrieb Terry Hancock:
> But I suspect it looks like this:
>
> os.system('cd c:\Applications\R\rw1091\bin')
> os.system('Rcmd BATCH c:\test.txt')
Look out for the snake's escaping rules... I bet you meant:
os.system(r'cd c:\Applications\R\rw1091\bin')
os.system(r'Rcmd BATCH c:\test.txt')
So that the backslash doesn't escape the next character, but is verbatim...
That's one reason to hate windows... ;)
Heiko.
More information about the Python-list
mailing list