tests/testthat/test-tar_random_port.R

tar_test("tar_random_port()", {
  skip_if_not_installed("parallelly")
  expect_true(is.integer(tar_random_port()))
})

Try the targets package in your browser

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

targets documentation built on Oct. 12, 2023, 5:07 p.m.