tests/testthat/test-01-download.R

context("Download")

olddir <- Sys.getenv("YOTOV_DB_DIR")
Sys.setenv(YOTOV_DB_DIR = normalizePath(file.path(getwd(), "yotover"),
  mustWork = FALSE
))

test_that("Download succeeds", {
  skip_on_cran()
  yotov_db_download()
  expect_true(yotov_status())
})

Sys.setenv(YOTOV_DB_DIR = olddir)

Try the yotover package in your browser

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

yotover documentation built on Jan. 28, 2021, 9:06 a.m.