tests/testthat/test-id.R

test_that("we can generate a unique ID", {
  skip_on_cran()
  id <- renv_id_generate()
  expect_true(nchar(id) == 36L)
  expect_true(grepl("^[a-fA-F0-9-]+$", id))
})

Try the renv package in your browser

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

renv documentation built on Sept. 19, 2023, 9:06 a.m.