tests/testthat/test-lockfile-read.R

test_that("renv_lockfile_read gives informative error", {
  file <- renv_scope_tempfile()
  writeLines("{", file)

  expect_snapshot(renv_lockfile_read(file), error = TRUE)
})

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.