tests/testthat/test-bootstrap.R

test_that("it should check rb3 folders", {
  reg <- rb3_registry$get_instance()
  expect_true(dir.exists(reg[["rb3_folder"]]))
  expect_true(dir.exists(reg[["raw_folder"]]))
  expect_true(dir.exists(reg[["db_folder"]]))
})

test_that("it should check rb3 sqlite connection", {
  reg <- rb3_registry$get_instance()
  expect_true("sqlite_db_connection" %in% names(reg))
  
  con <- meta_db_connection()
  expect_true(DBI::dbIsValid(con))
})

Try the rb3 package in your browser

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

rb3 documentation built on Aug. 8, 2025, 6:20 p.m.