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 June 22, 2024, 9:43 a.m.