tests/testthat/test-package-setup.R

# Test `parabar` package setup.

test_that("'parabar' package attaches correctly", {
    # Expect the package to be in the search path.
    expect_true("package:parabar" %in% search())

    # Expect the package options to be in the session after loading.
    expect_true(is(getOption("parabar"), "Options"))
})

Try the parabar package in your browser

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

parabar documentation built on May 29, 2024, 8:42 a.m.