tests/testthat/test-bugs.R

test_that("repos is a list, #82", {
  expect_true(withr::with_options(
    list(repos = list(CRAN = "https://cloud.r-project.org")),
    callr::r(function() inherits(getOption("repos"), "list"))
  ))
})

Try the callr package in your browser

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

callr documentation built on Nov. 2, 2022, 5:09 p.m.