tests/testthat/test-update.HydeNetwork.R

context("update.HydeNetwork")

carNet <- HydeNetwork(~gear | mpg * am,
                      data = mtcars) 

test_that("update by adding a node",
{
  expect_silent(update(carNet, ~ . + cyl | am))
})
  
test_that("update and lose a parent",
{
  expect_warning( update(carNet, ~ . - am) )
})
    

Try the HydeNet package in your browser

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

HydeNet documentation built on July 8, 2020, 5:15 p.m.