tests/testthat/test_queryMETA.R

#
library(testthat)
#detach(package:vcfR, unload=TRUE)
library(vcfR)
context("queryMETA")

##### ##### ##### ##### #####

test_that("queryMETA works",{
  data(vcfR_test)
  myMeta <- queryMETA(vcfR_test)

  expect_is(myMeta, "character")
})


test_that("queryMETA element works",{
  data(vcfR_test)
  myMeta <- queryMETA(vcfR_test, element = 'DP')

  expect_is(myMeta, "list")
})

Try the vcfR package in your browser

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

vcfR documentation built on Feb. 16, 2023, 8:12 p.m.