tests/testthat/test-i14y_search_concept.R

test_that("i14y_search_concept() returns a data.frame", {
  if (!curl::has_internet()) {
    skip("No internet connection")
  }
  df_concept_all <- i14y_search_concept(page = 1, pageSize = 10)
  expect_s3_class(df_concept_all, "data.frame")
  expect_true(nrow(df_concept_all) == 10)
  
  df_concept_noga <- i14y_search_concept(query = "noga", page = 1, pageSize = 1)
  expect_s3_class(df_concept_noga, "data.frame")
  expect_true(nrow(df_concept_noga) >= 1)
})

Try the I14Y package in your browser

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

I14Y documentation built on Aug. 8, 2025, 7:23 p.m.