tests/testthat/test-load.R

context("temp_load")

test_that("temp_load fails well", {
  expect_error(temp_load("gibberish"),
  paste0("Dataset not found at: ",
  paste0(cache_path(), "data_", "gibberish", ".rds"),
  "\n Try running the appropriate `get*` and/or `compile` commands."),
  fixed = TRUE)}
)
jsta/externalrdata documentation built on Oct. 16, 2023, 4:51 a.m.