Skip to Content

sortieR.py

  1. import subprocess
  2. def result():
  3. a = subprocess.Popen(['Rscript','/Users/martinlaloux/test.R'], stdout=subprocess.PIPE)
  4. sortie = a.stdout.read()
  5. return sortie
  6. if __name__ == '__main__':
  7. result()