tests/testthat/test_misc.R

library("testthat")
library("hdar")

test_that("Search - Results", {
  client <- Client$new()
  found_datasets <- client$datasets()

  print(length(found_datasets))

  IDs <- sapply(found_datasets,FUN = function(x){x$dataset_id})
  print(IDs)

#  expect_no_error(found_datasets)
#  expect_gte(length(found_datasets), 0)
})

Try the hdar package in your browser

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

hdar documentation built on June 17, 2025, 5:08 p.m.