tests/testthat/test-ancillary-functions.R

context("test ancillary functions")

test_that("test init data frame", {
  
  expect_type(
    init_dates_dataframe(
      yrstart = 2001,
      yrend = 2002,
      freq = "months"
    ),
    "list"
  )
  
  expect_type(
    init_dates_dataframe(
      yrstart = 2001,
      yrend = 2002,
      freq = "years"
    ),
    "list"
  )
})

Try the rsofun package in your browser

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

rsofun documentation built on Nov. 2, 2023, 6:02 p.m.