tests/testthat/test-is.formula.R

context("is.formula")

test_that("'is.formula' does the job", {
  expect_true(!is.formula(4) &&
                is.formula(~ x + y) && 
                is.formula(z ~ x + y))
})

Try the bazar package in your browser

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

bazar documentation built on May 2, 2019, 7:02 a.m.