tests/testthat/test-fitting.R

context("tests on input")

test_that("test input arguments",{

    set.seed(1234567)
    testdata <- simulate_data(nsubjects = 20)

    expect_warning(ushr(data = testdata, initial_buffer = 3.5), fixed = TRUE,
                   "initial_buffer must be a whole number: rounding down to 3")

})

Try the ushr package in your browser

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

ushr documentation built on April 22, 2020, 1:05 a.m.