tests/testthat/test_vocab_api.R

test_that("test examples vocab api",
          {
expect_equal(vocab_api("hi", bye = 21),"https://vocab.ices.dk/services/api/hi?bye=21")
expect_equal(vocab_api("CodeType"),"https://vocab.ices.dk/services/api/CodeType")
          }
)
            

Try the icesVocab package in your browser

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

icesVocab documentation built on June 8, 2025, 11:25 a.m.