tests/testthat/test-provenance.r

test_that("provenance", {
  
  skip_on_cran()
  
  env <- new.env()
  
  expect_silent(cmd_wrap('doesnotexist', 'dne', env))
  expect_error(env$dne())
  expect_silent(cmd_wrap('base', 'sum', env))
  expect_silent(env$sum(1:4, .lhs = 'x'))
  expect_silent(basewrap('base', 'sum', env))
  expect_silent(env$.sum(1:4))
})

Try the rbiom package in your browser

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

rbiom documentation built on April 3, 2025, 6:39 p.m.