Skip to content

Commit

Permalink
added suppressWarning statements for unix
Browse files Browse the repository at this point in the history
  • Loading branch information
adokter committed Dec 14, 2018
1 parent 7d3bed9 commit a4896d3
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions R/docker.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,16 @@ check_docker <- function(verbose = TRUE) {
docker_command_rm = "docker rm -f hello-world"
docker_command_run = "docker run --name hello-world hello-world"
if (.Platform$OS.type == "unix") {
system(docker_command_rm,
ignore.stderr = TRUE,
ignore.stdout = TRUE
suppressWarnings(
system(docker_command_rm,
ignore.stderr = TRUE,
ignore.stdout = TRUE
)
)
result <- system(docker_command_run,
ignore.stderr = !verbose, ignore.stdout = !verbose
result <- suppressWarnings(
system(docker_command_run,
ignore.stderr = !verbose, ignore.stdout = !verbose
)
)
} else {
suppressWarnings(
Expand Down

0 comments on commit a4896d3

Please sign in to comment.