tests/testthat/test-local.R

context("local")

test_that("it works", {
  local_path <- Sys.getenv("TEST_JETPACK_LOCAL_PATH", "")
  skip_if(local_path == "")

  setup({
    jetpack::init()

    jetpack::add("dbx", remote=paste0("local::", local_path))
    expectFileContains("DESCRIPTION", "dbx")
  })
})

Try the jetpack package in your browser

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

jetpack documentation built on Oct. 31, 2022, 5:07 p.m.