tests/testthat/test_nu_is_positive.R

context("if nu is positive")

test_that("check if nu is positivr", {
  X = matrix(c(1,2,4,3,5,6), 3, 2)

  expect_error(ogi(X, nu=c(0,1)), "nu is not positive.")
  expect_error(ogi(X, nu=c(1,1)), NA)

})

Try the OGI package in your browser

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

OGI documentation built on May 2, 2019, 8:55 a.m.