tests/testthat/test-as-parsed-model.R

context("parsed model")

test_that("Simple linear regression matches lm()", {
  expect_is(
    as_parsed_model(
      linear_regression_db(mtcars, wt, sample_size = 32)
      ),
    "parsed_model"
  )
})

Try the modeldb package in your browser

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

modeldb documentation built on March 26, 2020, 6:31 p.m.