tests/testthat/test-patches.R

test_that("a bad TAR is repaired", {
  renv_scope_envvars(TAR = "/no/such/tar")
  expect_warning(renv_patch_tar())
  expect_false(Sys.getenv("TAR") == "/no/such/tar")
})

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.