tests/testthat/test-github.R

context("github")

test_that("it works", {
  # previously failed on CRAN due to network issue
  # cannot open URL 'https://api.github.com/repos/ankane/dbx/commits/HEAD'
  skip_on_cran()

  setup({
    jetpack::init()

    jetpack::add("dbx", remote="ankane/dbx")
    expectFileContains("DESCRIPTION", "ankane/dbx")

    jetpack::remove("dbx", remote="ankane/dbx")
    refuteFileContains("DESCRIPTION", "ankane/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.