tests/testthat/test-read_hdx.R

test_that("doesn't work",
          expect_error(read_hdx("protein")))

test_that("class is right",
          expect_is(t_dat, 
                    "hdx_data"))

Try the HaDeX2 package in your browser

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

HaDeX2 documentation built on Feb. 9, 2026, 5:07 p.m.