tests/testthat/test-checkIds.R

test_that(
  "is_entrez_gene_symbol matches all HGNC gene symbols",
  {
    symbolFile <- "hgnc_gene_symbols.rds"
    symbols <- readRDS(symbolFile)
    actual <- readat:::is_entrez_gene_symbol(symbols)
    expect_true(all(actual), info = toString(symbols[!actual]))
  }
)

Try the readat package in your browser

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

readat documentation built on Oct. 31, 2019, 8:19 a.m.