Skip to content

Commit

Permalink
only confirm deployment in interactive mode
Browse files Browse the repository at this point in the history
  • Loading branch information
bajh committed Feb 12, 2016
1 parent e6b12b0 commit 6268fb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/yhatR.R
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ yhat.deploy <- function(model_name, packages=c(), confirm=TRUE) {
print(data.frame(name=all_objects, size=sizes))
cat("\n")

if (confirm) {
if (confirm && interactive()) {
confirm.deployment()
}

Expand Down

0 comments on commit 6268fb6

Please sign in to comment.