tests/testthat/test_TxRegInfra.R

library(TxRegInfra)

context("test ATLAS") # ATLAS service is used
test_that("listAllCollections succeeds", {
if (verifyHasMongoCmd()) {
  c1 <- listAllCollections(url=URL_txregInAWS(), db="txregnet")
  expect_true(length(c1)>=2640)
  }
})

context("test collection names as anticipated")
test_that("collection names are as anticipated", {
if (verifyHasMongoCmd()) {
  c1 <- listAllCollections(url=URL_txregInAWS(), db="txregnet")
  expect_true(all.equal(c1, rownames(basicColData)))
  }
})

Try the TxRegInfra package in your browser

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

TxRegInfra documentation built on Nov. 8, 2020, 5:15 p.m.