tests/testthat/test-vocabulary.R

context("vocabulary")

test_that("vocabulary", {
  skip_on_cran()

  tt <- vocabulary(prefix = "cell")

  expect_is(tt, "data.frame")
  expect_is(tt$term, "character")
  expect_is(tt$id, "character")
  expect_is(tt$category, "character")
  expect_is(tt$provider, "character")
  expect_is(tt$inferred, "logical")
  expect_is(tt$acronym, "logical")
  expect_is(tt$abbreviation, "logical")
  expect_is(tt$synonyms, "logical")
  expect_is(tt$definition, "logical")
})

Try the rif package in your browser

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

rif documentation built on May 2, 2019, 5:54 a.m.