tests/testthat/test-ricmd-helpers.R

context("ricmd helpers")



test_that("isPkgLoaded", {
              unloadNamespace("git2r")
              expect_false(isPkgLoaded("git2r"))
              library(git2r)
              expect_true(isPkgLoaded("git2r"))

})
jspijker/ricmdWorkflow documentation built on Dec. 21, 2021, 3:21 a.m.