Hi All
I have just started using a subprocess.call()to call external commands. I want to call R from command line and that I can do it easily by subprocess.call('Rscript script.R') and it works fine. I want to pass the several arguments instead of using default arguments. I tried using Rscript script.R --args arg1 arg2 but it is not working. R is not recognising the aruments provided on command line,
Could anyone please help on this. How can I pass the parameters to R from windows command line? and How can I use subprocesss.call() with those parameters from python script.
Appreciate your help.
Cheers