tests/testthat/test-tran.R

## Test `tran()` function

## load packages
library("testthat")
library("analogue")

context("Testing tran()")

## Imbrie and Kipp example
## load the example data
data(ImbrieKipp)

test_that("tran() handles bad inputs", {
    expect_error(tran(ImbrieKipp, method = "foo"))
})

Try the analogue package in your browser

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

analogue documentation built on June 21, 2021, 1:08 a.m.