Checks that Docker daemon is running correctly on the local system, and that vol2bird Docker image is available.

check_docker(verbose = TRUE)

Arguments

verbose

logical. When TRUE messages are printed to R console.

Value

0 upon success, otherwise an error code: 1 if Docker vol2bird image not available, 2 if Docker daemon not running, 3 if Docker daemon not found.

Examples

# \dontrun{
# check if Docker is running and vol2bird image is available:
check_docker()
#> Running docker image with vol2bird version 0.5.0.9169  (MistNet available) 
#> [1] 0
# }