tests/testthat/test-resetRappOptions.r

context("resetRappOptions-1")
test_that("resetRappOptions", {

  opts_old <- getOption(".rapp")
  
  expect_is(res <- resetRappOptions(), "environment")
  expect_equivalent(res, initializeRappOptions())
  
  on.exit(options(".rapp" = opts_old))
  
  }
)
rappster/rapp documentation built on May 26, 2019, 11:56 p.m.