Skip to content

Commit

Permalink
Fail on R error (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
algattik authored Feb 4, 2020
1 parent 424c317 commit 9e3b007
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions diabetes_regression/training/R/train_with_r.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import os
import subprocess

os.system("Rscript r_train.r && ls -ltr model.rds")
subprocess.check_call(["bash", "-c", "Rscript r_train.r && ls -ltr model.rds"])

0 comments on commit 9e3b007

Please sign in to comment.