tests/testthat/test-make_egor.R

test_that("make_egor works", {
  expect_error(make_egor(net.count = 5, max.alters = 5), NA)
})

test_that("edgelist_to_wide works", {
  data("aaties32")
  edges <- 
    split(aaties32, aaties32$.EGOID)
  expect_error(egor:::edgelist_to_wide(edges),
    NA)
})

Try the egor package in your browser

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

egor documentation built on March 31, 2023, 11:33 p.m.