tests/testthat/test-fredr_sources.R

test_that("fredr_sources()", {
  skip_if_no_key()

  srcs <- fredr_sources(limit = 10L)

  expect_s3_class(srcs, c("tbl_df", "tbl", "data.frame"))
  expect_true(ncol(srcs) == 5)
  expect_true(nrow(srcs) == 10)
})

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.