tests/testthat/test-lagos_load.R

context("lagos_load")

test_that("lagos_load fails well", {

  skip_on_cran()
  skip_on_travis()
  skip_on_appveyor()

  expect_error(lagosne_load("gibberish"),
    paste0("Dataset not found at: ",
    paste0(lagos_path(), "data_", "gibberish", ".rds"),
    "\n Try running the `lagosne_get` command."),
    fixed = TRUE)
})
cont-limno/LAGOS documentation built on Oct. 9, 2018, 11:36 p.m.