tests/testthat/test-MissingArguments.R

context("Missing arguments")

library(BiDimRegression)

test_that("Error is generated when arguments are missing", {
  expect_error(lm2())
  expect_error(lm2(A+B ~ C+D))
  expect_error(lm2(A+B ~ C+D, NakayaData))
})

Try the BiDimRegression package in your browser

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

BiDimRegression documentation built on March 18, 2022, 6:29 p.m.