tests/testthat/test_is_package_available.R

library(tryCatchLog)
library(testthat)



context("test_is_package_available.R")



source("init_unit_test.R")



test_that("is.package.available() works", {

  expect_true(tryCatchLog:::is.package.available("tryCatchLog"))
  expect_false(tryCatchLog:::is.package.available("e14d8635-4643-477f-9a79-1d9b05af1665"))

})

Try the tryCatchLog package in your browser

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

tryCatchLog documentation built on Oct. 25, 2021, 9:08 a.m.