tests/testthat/test-set_options.R

test_that("set_options works", {
    wmin = 0.12
    set_options(season = list(wmin = 0.12))
    expect_equal(get_options("season")$wmin, wmin)
})

Try the phenofit package in your browser

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

phenofit documentation built on Feb. 16, 2023, 6:21 p.m.