human
Running R script from python
assistant
Here is some code to running r script '/pathto/MyrScript.r' from python

subprocess.call(['/usr/bin/Rscript', '--vanilla', '/pathto/MyrScript.r'])

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