tests/testthat/test_readAtcMapIntoHashMapDrugNamesAtcCodes.R

library(epos)
context("test_readAtcMapIntoHashMapDrugNamesAtcCodes")

test_that("Test function readAtcMapIntoHashMapDrugNamesAtcCodes()", {
  atchashda <- readAtcMapIntoHashMapDrugNamesAtcCodes(
    system.file("extdata", "db-atc.map", package = "epos"), "\t")
  expect_that(length(names(atchashda)), equals(3223))
})

Try the epos package in your browser

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

epos documentation built on Feb. 20, 2021, 9:09 a.m.