set_test_env: Set testing env

Description Usage Arguments Value Examples

View source: R/api-utils.R

Description

Checks if docker is installed, is running and has required images downloaded and if do creates container

Usage

1
2
3
4
5
set_test_env(
  type = "host",
  docker_image = "tengfei/testenv",
  data_dir = getwd()
)

Arguments

type

"dind" or "host"

docker_image

required docker image with pre-installed bunny, default: tengfei/testenv

data_dir

directory with data to mount (also will be execution directory)

Value

docker stdout

Examples

1
2
3
## Not run: 
set_test_env("dind", "tengfei/testenv", "/Users/<user>/tools")
## End(Not run)

sevenbridges documentation built on March 25, 2021, 6 p.m.