Is the R session running inside Docker?

isDocker()

skip_on_docker()

Value

TRUE on success; FALSE on failure, with cause set.

Functions

  • skip_on_docker: Utility function for testthat.

Note

Updated 2019-11-19.

Examples

isDocker()
#> [1] FALSE #> Cause: Docker image not detected.