human
Running R script from python
assistant
Here is some code to run r script '/usr/bin/Rscript --vanilla /pathto/MyrScript.r'

subprocess.call('/usr/bin/Rscript --vanilla /pathto/MyrScript.r', shell=True)

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.