tests/testthat/test-GRDC.R

context("GRDC")

test_that("Test catalogueGRDC", {

  # Retrieve the whole catalogue
  x1 <- catalogueGRDC()
  expect_true("data.frame" %in% class(x1))
  expect_true(all(dim(x1) >= c(9922, 24)))
  expect_true(x1$river[x1$grdc_no == "1159900"] == "KLIPRIVIER")

})

Try the hddtools package in your browser

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

hddtools documentation built on Feb. 15, 2021, 1:08 a.m.