Skip to content

Commit 9e3b007

Browse files
authored
Fail on R error (#173)
1 parent 424c317 commit 9e3b007

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import os
1+
import subprocess
22

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

0 commit comments

Comments
 (0)