tests/testthat/test-get_key.R

testthat::test_that("Key to the API is given", {
  skip_if_no_key()
  expect_type(get_key(), "character")
})

Try the nutrientr package in your browser

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

nutrientr documentation built on March 18, 2022, 6:27 p.m.