tests/testthat/test_onarg.R

test_that("testing onarg", {
  expect_is(onarg(runif,'max'), 'function')
  expect_true(all(onarg(runif, 'max')(1:10,10) < 1:10))
  expect_equal(length(letters %contains% 'a'), 1)
  expect_is(letters %contains% 'a', 'logical')
})

Try the dostats package in your browser

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

dostats documentation built on May 29, 2017, 6:07 p.m.