I have a R script which works fine on its own but I need it to be a part of python script. So, when I run the python script the R script be executed automatically. I use the below command; there is no error but the R script output files are not created.
import subprocess
retcode = subprocess.call("C:/Program Files/R/R-3.2.2/bin/Rscript --vanilla T:/2012.R", shell=True)
Thank you so much in advance.
print.hw <- function() { print("hello world") }; print.hw()C:/Program Files/R/R-3.2.2/bin/Rscript --vanilla T:/2012.R?