tests/testthat/test_06_adb_schemas.R

library(arealDB)
library(testthat)
library(checkmate)
context("adb_schemas")


test_that("", {

  dbpath <- paste0(tempdir(), "/newDB")

  adb_example(until = "normTable", path = dbpath)

  schemas <- adb_schemas(pattern = "madeUp")

  expect_list(x = schemas, len = 2, types = "schema")
  expect_names(x = names(schemas), identical.to = c("_al1_barleyMaize_1990_2017_madeUp_schema", "aNation_al2_barleyMaize_1990_2017_madeUp_schema"))

})

Try the arealDB package in your browser

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

arealDB documentation built on April 12, 2025, 1:42 a.m.