Skip to contents

Checks docker info succeeds, so a caller can fail early and clearly (before materialising anything) rather than partway through a batch of papers with a cryptic docker run error. Used as the guard for sandbox = "docker" the same way requireNamespace("callr", ...) guards the process backend.

Usage

repro_docker_available()

Value

a list ok (logical) and msg (character, empty on success — otherwise a human-readable reason, e.g. Docker not installed, the daemon not running, or the daemon too busy to answer)

Examples

# \donttest{
# can wait up to 105 seconds for a busy Docker
repro_docker_available()$ok
#> [1] TRUE
# }