tests/testthat/test-fredr_series_vintagedates.R

test_that("fredr_series_vintagedates()", {
  skip_if_no_key()

  series <- fredr_series_vintagedates(series_id = "GNPCA", limit = 10L)

  expect_s3_class(series, c("tbl_df", "tbl", "data.frame"))
  expect_true(ncol(series) == 1)
})

Try the fredr package in your browser

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

fredr documentation built on Jan. 30, 2021, 1:06 a.m.