I am facing problems running a Rscript via Python using os.system() or subprocess().
Using os.system() to run commands via python works generally fine for me (e.g. with
After getting mental on such a simple problem. I decided to reinstall RStatistics to a path with no spaces or points, like:
C:/R/bin/Rscript.exe
.
Now
subprocess.call(["C:/R/bin/Rscript.exe", "D:/otsu_Script.R"] )
or
os.system("C:/R/bin/Rscript.exe D:/otsu_Script.R")
are working just fine.
Should have tried it two days ago...
... but now I am a happy monkey anyway :-)