tests/testthat/helper.R

expect_tz_warning <- function(object) {
    # FIXME when the tzone warning is fixed, delete this function,
    # use Replace all expect_tz_warning -> expect_no_warning
    # This is for R >= 4.3.0
    # Issue #156
    if (getRversion() >= "4.3.0") {
        expect_warning(object, regexp = "tzone")
    } else {
        expect_no_warning(object)
    }
}

Try the timetk package in your browser

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

timetk documentation built on Nov. 2, 2023, 6:18 p.m.