tests/testthat/test-get_table_dimensions.R

#test_that("Valid table ID returns a list", {
#  expect_type(get_table_dimensions("NM_1_1"), "list")
#}
#)

test_that("Valid query returning over 25,000 rows sends a warning", {
  expect_error(get_table_dimensions("NM_10005_1"))
}
)



test_that("Valid table ID returns a list", {
  expect_type(get_table_dimensions("NM_102_1"), "list")
}
)


test_that("Valid table ID returns a list", {
  expect_type(get_table_dimensions("NM_1042_1"), "list")
}
)

Try the sgapi package in your browser

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

sgapi documentation built on June 8, 2025, 11:09 a.m.