context("ridgereg")
data("iris")
test_that("ridgereg rejects errounous input", {
expect_error(ridgereg_mod <- ridgereg$new(formula = Petal.Length~Sepdsal.Width+Sepal.Length, data=iris))
expect_error(ridgereg_mod <- ridgereg$new(formula = Petal.Length~Sepdsal.Width+Sepal.Length, data=irfsfdis))
})
test_that("class is correct", {
ridgereg_mod <- ridgereg$new(Petal.Length~Species, data=iris,lambda=0)
expect_true(class(ridgereg_mod)[1] == "ridgereg")
})
test_that("print() method works", {
ridgereg_mod <- ridgereg$new(Petal.Length~Species, data=iris,lambda=0)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.