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")
})
ropensci/tidync documentation built on Oct. 28, 2023, 10:56 p.m.