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 2020-04-08.

Examples

isDocker()
#> [1] FALSE #> Cause: 1 failure #> pos value cause #> 1 1 /proc/1/cgroup not file