tests/testthat/test-track.ids.R

load_test_db()

test_that("emr_track.ids works", {
    a <- emr_extract("track1", keepref = TRUE) %>%
        dplyr::distinct(id)
    b <- emr_track.ids("track1")
    expect_equal(a, b)

    a <- emr_extract("track1_sparse", keepref = TRUE) %>%
        dplyr::distinct(id)
    b <- emr_track.ids("track1_sparse")
    expect_equal(a, b)
})

Try the naryn package in your browser

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

naryn documentation built on Sept. 27, 2024, 5:07 p.m.