tests/testthat/test-files.R

context("files")

fname <- paste(sample(unlist(strsplit("somecrazyfile", ""))), collapse = "")
test_that("file not found is friendly", {
  expect_error(expect_warning(tidync(fname)), "No such file or directory")
})
r-gris/tidync documentation built on Oct. 27, 2023, 1:02 p.m.