tests/testthat/test-infer_docker_org.R

test_that("infer_docker_org works", {
  
  ## User-given
  docker_org <- "neurogenomicslab"
  out <- infer_docker_org(docker_org = docker_org, 
                          docker_registry = "docker.io")
  testthat::expect_equal(out,docker_org)

  ## Unable to infer for DockerHub
  testthat::expect_error(
    infer_docker_org(docker_org = NULL, 
                     docker_registry = "docker.io")
  )
  
})

Try the rworkflows package in your browser

Any scripts or data that you put into this service are public.

rworkflows documentation built on May 6, 2026, 1:06 a.m.