[R] system() or shell() with python script
Remko Duursma
remkoduursma at gmail.com
Tue Oct 20 11:55:46 CEST 2009
Hi all,
I am having some problems calling a python script from R that resides
in a folder that is in the path (WindowsXP):
> system("quickPadTool.py")
Warning message:
In system("quickPadTool.py") : quickPadTool.py not found
# I also tried 'shell' (and shell.exec as well).
> shell("quickPadTool.py")
'quickPadTool.py' is not recognized as an internal or external command,
operable program or batch file.
Warning message:
In shell("quickPadTool.py") :
'quickPadTool.py' execution failed with error code 1
I can run the script fine from a command window just fine, from the
same directory.
Any pointers?
thanks,
Remko
-------------------------------------------------
Remko Duursma
Post-Doctoral Fellow
Centre for Plants and the Environment
University of Western Sydney
Hawkesbury Campus
Richmond NSW 2753
Dept of Biological Science
Macquarie University
North Ryde NSW 2109
Australia
Mobile: +61 (0)422 096908
www.remkoduursma.com
More information about the R-help
mailing list