tests/testthat/test_read_data_package_doi.R

context("Read data package DOI")

testthat::test_that("read_data_package_doi() works", {
  vcr::use_cassette("read_data_package_doi", {
    res <- read_data_package_doi("knb-lter-jrn.210548103.15")
  })
  expect_equal(class(res), "character")
  expect_true(length(res) > 0)
})

Try the EDIutils package in your browser

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

EDIutils documentation built on Oct. 11, 2023, 1:08 a.m.