tests/testthat/test-github.R

test_that("error when dont't know what", {
  expect_error(getGithub("harrypotter", "wand"))
})

test_that("contributors are provided", {
  expect_equal(class(getGithub("contributors", "rapbase")), "character")
})

test_that("key can be provided", {
  expect_true(grepl("ssh-rsa", getGithub("keys", "areedv")))
})

Try the rapbase package in your browser

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

rapbase documentation built on March 7, 2023, 8 p.m.