tests/testthat/test-biomart.R

context("Test: biomart()")

test_that("The biomart() interface works properly..",{

    skip_on_cran()
    skip_on_travis()

    expect_gt(nrow(getMarts(update = TRUE)), 6)
    expect_output(
            biomart(
                genes      = "GUCA2A",
                mart       = "ENSEMBL_MART_ENSEMBL",
                dataset    = "hsapiens_gene_ensembl",
                attributes = c("start_position", "end_position", "description"),
                filters    = "hgnc_symbol"
            )[1, 1:3]
        )
})

Try the biomartr package in your browser

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

biomartr documentation built on May 29, 2024, 11:42 a.m.