tests/testthat/test-check_response_swdi.R

context("check_response_swdi")

test_that("check_response returns an error", {
  skip_on_cran()
  
  # Get a warning if startdate and enddate are not provided
  expect_error(swdi(dataset = 'warn', id = 533623), "startdate")
})

Try the rnoaa package in your browser

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

rnoaa documentation built on April 27, 2023, 9:08 a.m.