Skip to content

Commit

Permalink
Respect quiet flag
Browse files Browse the repository at this point in the history
  • Loading branch information
kippandrew committed Oct 8, 2013
1 parent 2d7a045 commit be564b8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions R/lucid.R
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ lucidClient <- function(authInfo) {

path <- paste("/tasks/", taskId, sep="")

cat("Waiting for task: ", taskId, "\n", sep="")
if (!quiet) {
cat("Waiting for task: ", taskId, "\n", sep="")
}

lastStatus <- NULL
while(TRUE) {
Expand All @@ -74,7 +76,7 @@ lucidClient <- function(authInfo) {

# are we finished? (note: this codepath is the only way to exit
# this function)
else if (status$finished) {
if (status$finished) {
if (identical(status$status, "complete"))
return (NULL)
else
Expand Down

0 comments on commit be564b8

Please sign in to comment.