tests/testthat/test_utils.R

context("testing util functions")

test_that("get URL links", {
    dt <- data.table(
        seqnames = "chr1",
        start= 1,
        end= 2,
        hgnc_symbol="TIMMDC1"
    )

    expect_is(createFullLinkTable(dt, TRUE), "data.table")
    expect_is(createFullLinkTable(dt, FALSE), "data.table")
    expect_is(createFullLinkTable(dt[0]), "data.table")
})

Try the FRASER package in your browser

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

FRASER documentation built on Feb. 3, 2021, 2:01 a.m.