tests/testthat/test-rex_mode.R

context("rex_mode")
test_that("rex_mode attaches .rex$env to the search_path", {
  expect_false(".rex$env" %in% search())

  rex_mode()

  expect_true(".rex$env" %in% search())

  rex_mode()

  expect_false(".rex$env" %in% search())
})

Try the rex package in your browser

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

rex documentation built on Nov. 26, 2021, 5:21 p.m.